home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / Files.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  102.2 KB  |  4,544 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Files.a
  3. ;
  4. ;    Contains:    File Manager (HFS and MFS) Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  21. __FILES__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  25.     include 'Types.a'
  26.     ENDIF
  27. ;        include 'ConditionalMacros.a'                                ;
  28.  
  29.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  30.     include 'MixedMode.a'
  31.     ENDIF
  32.  
  33.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  34.     include 'OSUtils.a'
  35.     ENDIF
  36. ;        include 'Memory.a'                                            ;
  37.     IF ¬ OLDROUTINELOCATIONS  THEN
  38.  
  39.     IF &TYPE('__FINDER__') = 'UNDEFINED' THEN
  40.     include 'Finder.a'
  41.     ENDIF
  42.     ENDIF
  43.  
  44. fsAtMark                        EQU        0
  45. fsCurPerm                        EQU        0
  46. fsRdPerm                        EQU        1
  47. fInvisible                        EQU        16384
  48. fsWrPerm                        EQU        2
  49. fsRdWrPerm                        EQU        3
  50. fsRdWrShPerm                    EQU        4
  51. fsFromStart                        EQU        1
  52. fsFromLEOF                        EQU        2
  53. fsFromMark                        EQU        3
  54. rdVerify                        EQU        64
  55. ioMapBuffer                        EQU        4
  56. ioModeReserved                    EQU        8
  57. ioDirFlg                        EQU        4                    ; see IM IV-125 
  58. ioDirMask                        EQU        $10
  59. fsRtParID                        EQU        1
  60. fsRtDirID                        EQU        2
  61.  
  62.     IF OLDROUTINELOCATIONS  THEN
  63. fOnDesk                            EQU        1
  64. fHasBundle                        EQU        8192
  65. fTrash                            EQU        -3
  66. fDesktop                        EQU        -2
  67. fDisk                            EQU        0
  68.  
  69.     ENDIF
  70. ; CatSearch SearchBits Constants 
  71. fsSBPartialName                    EQU        1
  72. fsSBFullName                    EQU        2
  73. fsSBFlAttrib                    EQU        4
  74. fsSBFlFndrInfo                    EQU        8
  75. fsSBFlLgLen                        EQU        32
  76. fsSBFlPyLen                        EQU        64
  77. fsSBFlRLgLen                    EQU        128
  78. fsSBFlRPyLen                    EQU        256
  79. fsSBFlCrDat                        EQU        512
  80. fsSBFlMdDat                        EQU        1024
  81. fsSBFlBkDat                        EQU        2048
  82. fsSBFlXFndrInfo                    EQU        4096
  83. fsSBFlParID                        EQU        8192
  84. fsSBNegate                        EQU        16384
  85. fsSBDrUsrWds                    EQU        8
  86. fsSBDrNmFls                        EQU        16
  87. fsSBDrCrDat                        EQU        512
  88. fsSBDrMdDat                        EQU        1024
  89. fsSBDrBkDat                        EQU        2048
  90. fsSBDrFndrInfo                    EQU        4096
  91. ; bit values for the above 
  92. fsSBPartialNameBit                EQU        0                    ;ioFileName points to a substring
  93. fsSBFullNameBit                    EQU        1                    ;ioFileName points to a match string
  94. fsSBFlAttribBit                    EQU        2                    ;search includes file attributes
  95. fsSBFlFndrInfoBit                EQU        3                    ;search includes finder info
  96. fsSBFlLgLenBit                    EQU        5                    ;search includes data logical length
  97. fsSBFlPyLenBit                    EQU        6                    ;search includes data physical length
  98. fsSBFlRLgLenBit                    EQU        7                    ;search includes resource logical length
  99. fsSBFlRPyLenBit                    EQU        8                    ;search includes resource physical length
  100. fsSBFlCrDatBit                    EQU        9                    ;search includes create date
  101. fsSBFlMdDatBit                    EQU        10                    ;search includes modification date
  102. fsSBFlBkDatBit                    EQU        11                    ;search includes backup date
  103. fsSBFlXFndrInfoBit                EQU        12                    ;search includes extended finder info
  104. fsSBFlParIDBit                    EQU        13                    ;search includes file's parent ID
  105. fsSBNegateBit                    EQU        14                    ;return all non-matches
  106. fsSBDrUsrWdsBit                    EQU        3                    ;search includes directory finder info
  107. fsSBDrNmFlsBit                    EQU        4                    ;search includes directory valence
  108. fsSBDrCrDatBit                    EQU        9                    ;directory-named version of fsSBFlCrDatBit
  109. fsSBDrMdDatBit                    EQU        10                    ;directory-named version of fsSBFlMdDatBit
  110. fsSBDrBkDatBit                    EQU        11                    ;directory-named version of fsSBFlBkDatBit
  111. fsSBDrFndrInfoBit                EQU        12                    ;directory-named version of fsSBFlXFndrInfoBit
  112.  
  113. fsSBDrParID                        EQU        8192
  114. fsSBDrParIDBit                    EQU        13                    ;directory-named version of fsSBFlParIDBit
  115. ; vMAttrib (GetVolParms) bit position constants 
  116. bLimitFCBs                        EQU        31
  117. bLocalWList                        EQU        30
  118. bNoMiniFndr                        EQU        29
  119. bNoVNEdit                        EQU        28
  120. bNoLclSync                        EQU        27
  121. bTrshOffLine                    EQU        26
  122. bNoSwitchTo                        EQU        25
  123. bNoDeskItems                    EQU        20
  124. bNoBootBlks                        EQU        19
  125. bAccessCntl                        EQU        18
  126. bNoSysDir                        EQU        17
  127. bHasExtFSVol                    EQU        16
  128. bHasOpenDeny                    EQU        15
  129. bHasCopyFile                    EQU        14
  130. bHasMoveRename                    EQU        13
  131. bHasDesktopMgr                    EQU        12
  132. bHasShortName                    EQU        11
  133. bHasFolderLock                    EQU        10
  134. bHasPersonalAccessPrivileges    EQU        9
  135.  
  136. bHasUserGroupList                EQU        8
  137. bHasCatSearch                    EQU        7
  138. bHasFileIDs                        EQU        6
  139. bHasBTreeMgr                    EQU        5
  140. bHasBlankAccessPrivileges        EQU        4
  141. ; Desktop Database icon Constants 
  142. kLargeIcon                        EQU        1
  143. kLarge4BitIcon                    EQU        2
  144. kLarge8BitIcon                    EQU        3
  145. kSmallIcon                        EQU        4
  146. kSmall4BitIcon                    EQU        5
  147. kSmall8BitIcon                    EQU        6
  148. kLargeIconSize                    EQU        256
  149. kLarge4BitIconSize                EQU        512
  150. kLarge8BitIconSize                EQU        1024
  151. kSmallIconSize                    EQU        64
  152. kSmall4BitIconSize                EQU        128
  153. kSmall8BitIconSize                EQU        256
  154. ; Foreign Privilege Model Identifiers 
  155. fsUnixPriv                        EQU        1
  156. ; Version Release Stage Codes 
  157. developStage                    EQU        $20
  158. alphaStage                        EQU        $40
  159.  
  160. betaStage                        EQU        $60
  161. finalStage                        EQU        $80
  162. ; Authentication Constants 
  163. kNoUserAuthentication            EQU        1
  164. kPassword                        EQU        2
  165. kEncryptPassword                EQU        3
  166. kTwoWayEncryptPassword            EQU        6
  167.  
  168. hFileInfo                        EQU        0
  169. dirInfo                            EQU        1
  170.  
  171. ; typedef SInt8             CInfoType
  172. ; mapping codes (ioObjType) for MapName & MapID 
  173.  
  174. kOwnerID2Name                    EQU        1
  175. kGroupID2Name                    EQU        2
  176. kOwnerName2ID                    EQU        3
  177. kGroupName2ID                    EQU        4
  178. ; types of oj object to be returned (ioObjType) for _GetUGEntry 
  179. kReturnNextUser                    EQU        1
  180. kReturnNextGroup                EQU        2
  181. kReturnNextUG                    EQU        3
  182.  
  183.     IF OLDROUTINELOCATIONS  THEN
  184. ;
  185. ;    The following structures are being moved to Finder.i because
  186. ;    they are Finder centric.  See Finder constants above.
  187. ;
  188. FInfo                     RECORD    0
  189. fdType                     ds.l   1        ; offset: $0 (0)        ;the type of the file
  190. fdCreator                 ds.l   1        ; offset: $4 (4)        ;file's creator
  191. fdFlags                     ds.w   1        ; offset: $8 (8)        ;flags ex. hasbundle,invisible,locked, etc.
  192. fdLocation                 ds     Point    ; offset: $A (10)        ;file's location in folder
  193. fdFldr                     ds.w   1        ; offset: $E (14)        ;folder containing file
  194. sizeof                     EQU *            ; size:   $10 (16)
  195.                         ENDR
  196.  
  197. ; typedef struct FInfo         FInfo
  198. FXInfo                     RECORD    0
  199. fdIconID                 ds.w   1        ; offset: $0 (0)        ;Icon ID
  200. fdUnused                 ds.w   3        ; offset: $2 (2)        ;unused but reserved 6 bytes
  201. fdScript                 ds.b   1        ; offset: $8 (8)        ;Script flag and number
  202. fdXFlags                 ds.b   1        ; offset: $9 (9)        ;More flag bits
  203. fdComment                 ds.w   1        ; offset: $A (10)        ;Comment ID
  204. fdPutAway                 ds.l   1        ; offset: $C (12)        ;Home Dir ID
  205. sizeof                     EQU *            ; size:   $10 (16)
  206.                         ENDR
  207.  
  208. ; typedef struct FXInfo     FXInfo
  209. DInfo                     RECORD    0
  210. frRect                     ds     Rect    ; offset: $0 (0)        ;folder rect
  211. frFlags                     ds.w   1        ; offset: $8 (8)        ;Flags
  212. frLocation                 ds     Point    ; offset: $A (10)        ;folder location
  213. frView                     ds.w   1        ; offset: $E (14)        ;folder view
  214. sizeof                     EQU *            ; size:   $10 (16)
  215.                         ENDR
  216.  
  217. ; typedef struct DInfo         DInfo
  218. DXInfo                     RECORD    0
  219. frScroll                 ds     Point    ; offset: $0 (0)        ;scroll position
  220. frOpenChain                 ds.l   1        ; offset: $4 (4)        ;DirID chain of open folders
  221. frScript                 ds.b   1        ; offset: $8 (8)        ;Script flag and number
  222. frXFlags                 ds.b   1        ; offset: $9 (9)        ;More flag bits
  223. frComment                 ds.w   1        ; offset: $A (10)        ;comment
  224. frPutAway                 ds.l   1        ; offset: $C (12)        ;DirID
  225. sizeof                     EQU *            ; size:   $10 (16)
  226.                         ENDR
  227.  
  228. ; typedef struct DXInfo     DXInfo
  229.     ENDIF
  230. GetVolParmsInfoBuffer     RECORD    0
  231. vMVersion                 ds.w   1        ; offset: $0 (0)        ;version number
  232. vMAttrib                 ds.l   1        ; offset: $2 (2)        ;bit vector of attributes (see vMAttrib constants)
  233. vMLocalHand                 ds.l   1        ; offset: $6 (6)        ;handle to private data
  234. vMServerAdr                 ds.l   1        ; offset: $A (10)        ;AppleTalk server address or zero
  235. vMVolumeGrade             ds.l   1        ; offset: $E (14)        ;approx. speed rating or zero if unrated
  236. vMForeignPrivID             ds.w   1        ; offset: $12 (18)        ;foreign privilege model supported or zero if none
  237. sizeof                     EQU *            ; size:   $14 (20)
  238.                         ENDR
  239.  
  240. ; typedef struct GetVolParmsInfoBuffer  GetVolParmsInfoBuffer
  241. ; typedef ParamBlockRec     *ParmBlkPtr
  242. IOParam                 RECORD    0
  243. qLink                     ds.l   1        ; offset: $0 (0)
  244. qType                     ds.w   1        ; offset: $4 (4)
  245. ioTrap                     ds.w   1        ; offset: $6 (6)
  246. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  247. ioCompletion             ds.l   1        ; offset: $C (12)
  248. ioResult                 ds.w   1        ; offset: $10 (16)
  249. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  250. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  251. ioRefNum                 ds.w   1        ; offset: $18 (24)
  252. ioVersNum                 ds.b   1        ; offset: $1A (26)
  253. ioPermssn                 ds.b   1        ; offset: $1B (27)
  254. ioMisc                     ds.l   1        ; offset: $1C (28)
  255. ioBuffer                 ds.l   1        ; offset: $20 (32)
  256. ioReqCount                 ds.l   1        ; offset: $24 (36)
  257. ioActCount                 ds.l   1        ; offset: $28 (40)
  258. ioPosMode                 ds.w   1        ; offset: $2C (44)
  259. ioPosOffset                 ds.l   1        ; offset: $2E (46)
  260. sizeof                     EQU *            ; size:   $32 (50)
  261.                         ENDR
  262.  
  263. ; typedef struct IOParam     IOParam, *IOParamPtr
  264. FileParam                 RECORD    0
  265. qLink                     ds.l   1        ; offset: $0 (0)
  266. qType                     ds.w   1        ; offset: $4 (4)
  267. ioTrap                     ds.w   1        ; offset: $6 (6)
  268. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  269. ioCompletion             ds.l   1        ; offset: $C (12)
  270. ioResult                 ds.w   1        ; offset: $10 (16)
  271. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  272. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  273. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  274. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  275. filler1                     ds.b   1        ; offset: $1B (27)
  276. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  277. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  278. ioFlVersNum                 ds.b   1        ; offset: $1F (31)
  279. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  280. ioFlNum                     ds.l   1        ; offset: $30 (48)
  281. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  282. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  283. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  284. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  285. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  286. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  287. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  288. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  289. sizeof                     EQU *            ; size:   $50 (80)
  290.                         ENDR
  291.  
  292. ; typedef struct FileParam     FileParam, *FileParamPtr
  293. VolumeParam             RECORD    0
  294. qLink                     ds.l   1        ; offset: $0 (0)
  295. qType                     ds.w   1        ; offset: $4 (4)
  296. ioTrap                     ds.w   1        ; offset: $6 (6)
  297. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  298. ioCompletion             ds.l   1        ; offset: $C (12)
  299. ioResult                 ds.w   1        ; offset: $10 (16)
  300. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  301. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  302. filler2                     ds.l   1        ; offset: $18 (24)
  303. ioVolIndex                 ds.w   1        ; offset: $1C (28)
  304. ioVCrDate                 ds.l   1        ; offset: $1E (30)
  305. ioVLsBkUp                 ds.l   1        ; offset: $22 (34)
  306. ioVAtrb                     ds.w   1        ; offset: $26 (38)
  307. ioVNmFls                 ds.w   1        ; offset: $28 (40)
  308. ioVDirSt                 ds.w   1        ; offset: $2A (42)
  309. ioVBlLn                     ds.w   1        ; offset: $2C (44)
  310. ioVNmAlBlks                 ds.w   1        ; offset: $2E (46)
  311. ioVAlBlkSiz                 ds.l   1        ; offset: $30 (48)
  312. ioVClpSiz                 ds.l   1        ; offset: $34 (52)
  313. ioAlBlSt                 ds.w   1        ; offset: $38 (56)
  314. ioVNxtFNum                 ds.l   1        ; offset: $3A (58)
  315. ioVFrBlk                 ds.w   1        ; offset: $3E (62)
  316. sizeof                     EQU *            ; size:   $40 (64)
  317.                         ENDR
  318.  
  319. ; typedef struct VolumeParam  VolumeParam, *VolumeParamPtr
  320. CntrlParam                 RECORD    0
  321. qLink                     ds.l   1        ; offset: $0 (0)
  322. qType                     ds.w   1        ; offset: $4 (4)
  323. ioTrap                     ds.w   1        ; offset: $6 (6)
  324. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  325. ioCompletion             ds.l   1        ; offset: $C (12)
  326. ioResult                 ds.w   1        ; offset: $10 (16)
  327. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  328. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  329. ioCRefNum                 ds.w   1        ; offset: $18 (24)
  330. csCode                     ds.w   1        ; offset: $1A (26)
  331. csParam                     ds.w   11        ; offset: $1C (28)
  332. sizeof                     EQU *            ; size:   $32 (50)
  333.                         ENDR
  334.  
  335. ; typedef struct CntrlParam  CntrlParam, *CntrlParamPtr
  336. SlotDevParam             RECORD    0
  337. qLink                     ds.l   1        ; offset: $0 (0)
  338. qType                     ds.w   1        ; offset: $4 (4)
  339. ioTrap                     ds.w   1        ; offset: $6 (6)
  340. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  341. ioCompletion             ds.l   1        ; offset: $C (12)
  342. ioResult                 ds.w   1        ; offset: $10 (16)
  343. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  344. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  345. ioSRefNum                 ds.w   1        ; offset: $18 (24)
  346. ioSVersNum                 ds.b   1        ; offset: $1A (26)
  347. ioSPermssn                 ds.b   1        ; offset: $1B (27)
  348. ioSMix                     ds.l   1        ; offset: $1C (28)
  349. ioSFlags                 ds.w   1        ; offset: $20 (32)
  350. ioSlot                     ds.b   1        ; offset: $22 (34)
  351. ioID                     ds.b   1        ; offset: $23 (35)
  352. sizeof                     EQU *            ; size:   $24 (36)
  353.                         ENDR
  354.  
  355. ; typedef struct SlotDevParam  SlotDevParam, *SlotDevParamPtr
  356. MultiDevParam             RECORD    0
  357. qLink                     ds.l   1        ; offset: $0 (0)
  358. qType                     ds.w   1        ; offset: $4 (4)
  359. ioTrap                     ds.w   1        ; offset: $6 (6)
  360. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  361. ioCompletion             ds.l   1        ; offset: $C (12)
  362. ioResult                 ds.w   1        ; offset: $10 (16)
  363. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  364. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  365. ioMRefNum                 ds.w   1        ; offset: $18 (24)
  366. ioMVersNum                 ds.b   1        ; offset: $1A (26)
  367. ioMPermssn                 ds.b   1        ; offset: $1B (27)
  368. ioMMix                     ds.l   1        ; offset: $1C (28)
  369. ioMFlags                 ds.w   1        ; offset: $20 (32)
  370. ioSEBlkPtr                 ds.l   1        ; offset: $22 (34)
  371. sizeof                     EQU *            ; size:   $26 (38)
  372.                         ENDR
  373.  
  374. ; typedef struct MultiDevParam  MultiDevParam, *MultiDevParamPtr
  375. ParamBlockRec             RECORD    0
  376. qLink                     ds.l   1        ; offset: $0 (0)
  377. qType                     ds.w   1        ; offset: $4 (4)
  378. ioTrap                     ds.w   1        ; offset: $6 (6)
  379. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  380. ioCompletion             ds.l   1        ; offset: $C (12)
  381. ioResult                 ds.w   1        ; offset: $10 (16)
  382. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  383. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  384. ioRefNum                 ds.w   1        ; offset: $18 (24)
  385. ioVersNum                 ds.b   1        ; offset: $1A (26)
  386. ioPermssn                 ds.b   1        ; offset: $1B (27)
  387. ioMisc                     ds.l   1        ; offset: $1C (28)
  388. ioBuffer                 ds.l   1        ; offset: $20 (32)
  389. ioReqCount                 ds.l   1        ; offset: $24 (36)
  390. ioActCount                 ds.l   1        ; offset: $28 (40)
  391. ioPosMode                 ds.w   1        ; offset: $2C (44)
  392. ioPosOffset                 ds.l   1        ; offset: $2E (46)
  393.                          ORG 24
  394. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  395. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  396. filler1                     ds.b   1        ; offset: $1B (27)
  397. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  398. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  399. ioFlVersNum                 ds.b   1        ; offset: $1F (31)
  400. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  401. ioFlNum                     ds.l   1        ; offset: $30 (48)
  402. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  403. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  404. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  405. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  406. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  407. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  408. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  409. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  410.                          ORG 24
  411. filler2                     ds.l   1        ; offset: $18 (24)
  412. ioVolIndex                 ds.w   1        ; offset: $1C (28)
  413. ioVCrDate                 ds.l   1        ; offset: $1E (30)
  414. ioVLsBkUp                 ds.l   1        ; offset: $22 (34)
  415. ioVAtrb                     ds.w   1        ; offset: $26 (38)
  416. ioVNmFls                 ds.w   1        ; offset: $28 (40)
  417. ioVDirSt                 ds.w   1        ; offset: $2A (42)
  418. ioVBlLn                     ds.w   1        ; offset: $2C (44)
  419. ioVNmAlBlks                 ds.w   1        ; offset: $2E (46)
  420. ioVAlBlkSiz                 ds.l   1        ; offset: $30 (48)
  421. ioVClpSiz                 ds.l   1        ; offset: $34 (52)
  422. ioAlBlSt                 ds.w   1        ; offset: $38 (56)
  423. ioVNxtFNum                 ds.l   1        ; offset: $3A (58)
  424. ioVFrBlk                 ds.w   1        ; offset: $3E (62)
  425.                          ORG 24
  426. ioCRefNum                 ds.w   1        ; offset: $18 (24)
  427. csCode                     ds.w   1        ; offset: $1A (26)
  428. csParam                     ds.w   11        ; offset: $1C (28)
  429.                          ORG 24
  430. ioSRefNum                 ds.w   1        ; offset: $18 (24)
  431. ioSVersNum                 ds.b   1        ; offset: $1A (26)
  432. ioSPermssn                 ds.b   1        ; offset: $1B (27)
  433. ioSMix                     ds.l   1        ; offset: $1C (28)
  434. ioSFlags                 ds.w   1        ; offset: $20 (32)
  435. ioSlot                     ds.b   1        ; offset: $22 (34)
  436. ioID                     ds.b   1        ; offset: $23 (35)
  437.                          ORG 24
  438. ioMRefNum                 ds.w   1        ; offset: $18 (24)
  439. ioMVersNum                 ds.b   1        ; offset: $1A (26)
  440. ioMPermssn                 ds.b   1        ; offset: $1B (27)
  441. ioMMix                     ds.l   1        ; offset: $1C (28)
  442. ioMFlags                 ds.w   1        ; offset: $20 (32)
  443. ioSEBlkPtr                 ds.l   1        ; offset: $22 (34)
  444.                          ORG 80
  445. sizeof                     EQU *            ; size:   $50 (80)
  446.                         ENDR
  447.  
  448. CInfoPBRec                 RECORD    0
  449. qLink                     ds.l   1        ; offset: $0 (0)
  450. qType                     ds.w   1        ; offset: $4 (4)
  451. ioTrap                     ds.w   1        ; offset: $6 (6)
  452. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  453. ioCompletion             ds.l   1        ; offset: $C (12)
  454. ioResult                 ds.w   1        ; offset: $10 (16)
  455. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  456. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  457. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  458. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  459. filler1                     ds.b   1        ; offset: $1B (27)
  460. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  461. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  462. ioACUser                 ds.b   1        ; offset: $1F (31)
  463. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  464. ioDirID                     ds.l   1        ; offset: $30 (48)
  465. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  466. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  467. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  468. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  469. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  470. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  471. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  472. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  473. ioFlBkDat                 ds.l   1        ; offset: $50 (80)
  474. ioFlXFndrInfo             ds     FXInfo    ; offset: $54 (84)
  475. ioFlParID                 ds.l   1        ; offset: $64 (100)
  476. ioFlClpSiz                 ds.l   1        ; offset: $68 (104)
  477.                          ORG 32
  478. ioDrUsrWds                 ds     DInfo    ; offset: $20 (32)
  479. ioDrDirID                 ds.l   1        ; offset: $30 (48)
  480. ioDrNmFls                 ds.w   1        ; offset: $34 (52)
  481. filler3                     ds.w   9        ; offset: $36 (54)
  482. ioDrCrDat                 ds.l   1        ; offset: $48 (72)
  483. ioDrMdDat                 ds.l   1        ; offset: $4C (76)
  484. ioDrBkDat                 ds.l   1        ; offset: $50 (80)
  485. ioDrFndrInfo             ds     DXInfo    ; offset: $54 (84)
  486. ioDrParID                 ds.l   1        ; offset: $64 (100)
  487.                          ORG 108
  488. sizeof                     EQU *            ; size:   $6C (108)
  489.                         ENDR
  490.  
  491. ; typedef struct CInfoPBRec  CInfoPBRec, *CInfoPBPtr
  492. CatPositionRec             RECORD    0
  493. initialize                 ds.l   1        ; offset: $0 (0)
  494. priv                     ds.w   6        ; offset: $4 (4)
  495. sizeof                     EQU *            ; size:   $10 (16)
  496.                         ENDR
  497.  
  498. ; typedef struct CatPositionRec  CatPositionRec
  499. FSSpec                     RECORD    0
  500. vRefNum                     ds.w   1        ; offset: $0 (0)
  501. parID                     ds.l   1        ; offset: $2 (2)
  502. name                     ds.l   16        ; offset: $6 (6)
  503. sizeof                     EQU *            ; size:   $46 (70)
  504.                         ENDR
  505.  
  506. ; typedef struct FSSpec     FSSpec
  507. ; typedef FSSpec             *FSSpecPtr, **FSSpecHandle
  508. ; pointer to array of FSSpecs 
  509. ; typedef FSSpecPtr         FSSpecArrayPtr
  510. ; The only difference between "const FSSpec*" and "ConstFSSpecPtr" is 
  511. ;   that as a parameter, ConstFSSpecPtr is allowed to be NULL 
  512. ; typedef const FSSpec         *ConstFSSpecPtr
  513. ; The following are structures to be filled out with the _GetVolMountInfo call
  514. ; and passed back into the _VolumeMount call for external file system mounts. 
  515. ; the "signature" of the file system 
  516. ; typedef OSType             VolumeType
  517.  
  518. ; the signature for AppleShare 
  519. AppleShareMediaType                EQU        'afpm'
  520.  
  521.     IF ¬ OLDROUTINELOCATIONS  THEN
  522. VolMountInfoHeader         RECORD    0
  523. length                     ds.w   1        ; offset: $0 (0)        ; length of location data (including self) 
  524. media                     ds.l   1        ; offset: $2 (2)        ; type of media.  Variable length data follows 
  525. sizeof                     EQU *            ; size:   $6 (6)
  526.                         ENDR
  527.  
  528. ; typedef struct VolMountInfoHeader  VolMountInfoHeader
  529. ; typedef VolMountInfoHeader  *VolMountInfoPtr
  530. ; The new volume mount info record.  The old one is included for compatibility. 
  531. ;    the new record allows access by foriegn filesystems writers to the flags 
  532. ;    portion of the record. This portion is now public.  
  533. VolumeMountInfoHeader     RECORD    0
  534. length                     ds.w   1        ; offset: $0 (0)        ; length of location data (including self) 
  535. media                     ds.l   1        ; offset: $2 (2)        ; type of media (must be registered with Apple) 
  536. flags                     ds.w   1        ; offset: $6 (6)        ; volume mount flags. Variable length data follows 
  537. sizeof                     EQU *            ; size:   $8 (8)
  538.                         ENDR
  539.  
  540. ; typedef struct VolumeMountInfoHeader  VolumeMountInfoHeader
  541. ; typedef VolumeMountInfoHeader  *VolumeMountInfoHeaderPtr
  542. ;    additional volume mount flags 
  543.  
  544. volMountInteractBit                EQU        15                    ; Input to VolumeMount: If set, it's OK for the file system 
  545. volMountInteractMask            EQU        $8000                ; to perform user interaction to mount the volume 
  546. volMountChangedBit                EQU        14                    ; Output from VoumeMount: If set, the volume was mounted, but 
  547. volMountChangedMask                EQU        $4000                ; the volume mounting information record needs to be updated. 
  548. volMountFSReservedMask            EQU        $00ff                ; bits 0-7 are defined by each file system for its own use 
  549. volMountSysReservedMask            EQU        $ff00                ; bits 8-15 are reserved for Apple system use 
  550.  
  551.     ENDIF
  552. AFPVolMountInfo         RECORD    0
  553. length                     ds.w   1        ; offset: $0 (0)        ; length of location data (including self) 
  554. media                     ds.l   1        ; offset: $2 (2)        ; type of media 
  555. flags                     ds.w   1        ; offset: $6 (6)        ; bits for no messages, no reconnect 
  556. nbpInterval                 ds.b   1        ; offset: $8 (8)        ; NBP Interval parameter (IM2, p.322) 
  557. nbpCount                 ds.b   1        ; offset: $9 (9)        ; NBP Interval parameter (IM2, p.322) 
  558. uamType                     ds.w   1        ; offset: $A (10)        ; User Authentication Method 
  559. zoneNameOffset             ds.w   1        ; offset: $C (12)        ; short positive offset from start of struct to Zone Name 
  560. serverNameOffset         ds.w   1        ; offset: $E (14)        ; offset to pascal Server Name string 
  561. volNameOffset             ds.w   1        ; offset: $10 (16)        ; offset to pascal Volume Name string 
  562. userNameOffset             ds.w   1        ; offset: $12 (18)        ; offset to pascal User Name string 
  563. userPasswordOffset         ds.w   1        ; offset: $14 (20)        ; offset to pascal User Password string 
  564. volPasswordOffset         ds.w   1        ; offset: $16 (22)        ; offset to pascal Volume Password string 
  565. AFPData                     ds.b   144        ; offset: $18 (24)        ; variable length data may follow 
  566. sizeof                     EQU *            ; size:   $A8 (168)
  567.                         ENDR
  568.  
  569. ; typedef struct AFPVolMountInfo  AFPVolMountInfo
  570. ; typedef AFPVolMountInfo     *AFPVolMountInfoPtr
  571. DTPBRec                 RECORD    0
  572. qLink                     ds.l   1        ; offset: $0 (0)
  573. qType                     ds.w   1        ; offset: $4 (4)
  574. ioTrap                     ds.w   1        ; offset: $6 (6)
  575. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  576. ioCompletion             ds.l   1        ; offset: $C (12)
  577. ioResult                 ds.w   1        ; offset: $10 (16)
  578. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  579. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  580. ioDTRefNum                 ds.w   1        ; offset: $18 (24)        ; desktop refnum 
  581. ioIndex                     ds.w   1        ; offset: $1A (26)
  582. ioTagInfo                 ds.l   1        ; offset: $1C (28)
  583. ioDTBuffer                 ds.l   1        ; offset: $20 (32)
  584. ioDTReqCount             ds.l   1        ; offset: $24 (36)
  585. ioDTActCount             ds.l   1        ; offset: $28 (40)
  586. ioFiller1                 ds.b   1        ; offset: $2C (44)
  587. ioIconType                 ds.b   1        ; offset: $2D (45)
  588. ioFiller2                 ds.w   1        ; offset: $2E (46)
  589. ioDirID                     ds.l   1        ; offset: $30 (48)
  590. ioFileCreator             ds.l   1        ; offset: $34 (52)
  591. ioFileType                 ds.l   1        ; offset: $38 (56)
  592. ioFiller3                 ds.l   1        ; offset: $3C (60)
  593. ioDTLgLen                 ds.l   1        ; offset: $40 (64)
  594. ioDTPyLen                 ds.l   1        ; offset: $44 (68)
  595. ioFiller4                 ds.w   14        ; offset: $48 (72)
  596. ioAPPLParID                 ds.l   1        ; offset: $64 (100)
  597. sizeof                     EQU *            ; size:   $68 (104)
  598.                         ENDR
  599.  
  600. ; typedef struct DTPBRec     DTPBRec
  601. ; typedef DTPBRec             *DTPBPtr
  602. HIOParam                 RECORD    0
  603. qLink                     ds.l   1        ; offset: $0 (0)
  604. qType                     ds.w   1        ; offset: $4 (4)
  605. ioTrap                     ds.w   1        ; offset: $6 (6)
  606. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  607. ioCompletion             ds.l   1        ; offset: $C (12)
  608. ioResult                 ds.w   1        ; offset: $10 (16)
  609. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  610. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  611. ioRefNum                 ds.w   1        ; offset: $18 (24)
  612. ioVersNum                 ds.b   1        ; offset: $1A (26)
  613. ioPermssn                 ds.b   1        ; offset: $1B (27)
  614. ioMisc                     ds.l   1        ; offset: $1C (28)
  615. ioBuffer                 ds.l   1        ; offset: $20 (32)
  616. ioReqCount                 ds.l   1        ; offset: $24 (36)
  617. ioActCount                 ds.l   1        ; offset: $28 (40)
  618. ioPosMode                 ds.w   1        ; offset: $2C (44)
  619. ioPosOffset                 ds.l   1        ; offset: $2E (46)
  620. sizeof                     EQU *            ; size:   $32 (50)
  621.                         ENDR
  622.  
  623. ; typedef struct HIOParam     HIOParam, *HIOParamPtr
  624. HFileParam                 RECORD    0
  625. qLink                     ds.l   1        ; offset: $0 (0)
  626. qType                     ds.w   1        ; offset: $4 (4)
  627. ioTrap                     ds.w   1        ; offset: $6 (6)
  628. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  629. ioCompletion             ds.l   1        ; offset: $C (12)
  630. ioResult                 ds.w   1        ; offset: $10 (16)
  631. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  632. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  633. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  634. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  635. filler1                     ds.b   1        ; offset: $1B (27)
  636. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  637. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  638. ioFlVersNum                 ds.b   1        ; offset: $1F (31)
  639. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  640. ioDirID                     ds.l   1        ; offset: $30 (48)
  641. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  642. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  643. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  644. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  645. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  646. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  647. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  648. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  649. sizeof                     EQU *            ; size:   $50 (80)
  650.                         ENDR
  651.  
  652. ; typedef struct HFileParam  HFileParam, *HFileParamPtr
  653. HVolumeParam             RECORD    0
  654. qLink                     ds.l   1        ; offset: $0 (0)
  655. qType                     ds.w   1        ; offset: $4 (4)
  656. ioTrap                     ds.w   1        ; offset: $6 (6)
  657. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  658. ioCompletion             ds.l   1        ; offset: $C (12)
  659. ioResult                 ds.w   1        ; offset: $10 (16)
  660. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  661. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  662. filler2                     ds.l   1        ; offset: $18 (24)
  663. ioVolIndex                 ds.w   1        ; offset: $1C (28)
  664. ioVCrDate                 ds.l   1        ; offset: $1E (30)
  665. ioVLsMod                 ds.l   1        ; offset: $22 (34)
  666. ioVAtrb                     ds.w   1        ; offset: $26 (38)
  667. ioVNmFls                 ds.w   1        ; offset: $28 (40)
  668. ioVBitMap                 ds.w   1        ; offset: $2A (42)
  669. ioAllocPtr                 ds.w   1        ; offset: $2C (44)
  670. ioVNmAlBlks                 ds.w   1        ; offset: $2E (46)
  671. ioVAlBlkSiz                 ds.l   1        ; offset: $30 (48)
  672. ioVClpSiz                 ds.l   1        ; offset: $34 (52)
  673. ioAlBlSt                 ds.w   1        ; offset: $38 (56)
  674. ioVNxtCNID                 ds.l   1        ; offset: $3A (58)
  675. ioVFrBlk                 ds.w   1        ; offset: $3E (62)
  676. ioVSigWord                 ds.w   1        ; offset: $40 (64)
  677. ioVDrvInfo                 ds.w   1        ; offset: $42 (66)
  678. ioVDRefNum                 ds.w   1        ; offset: $44 (68)
  679. ioVFSID                     ds.w   1        ; offset: $46 (70)
  680. ioVBkUp                     ds.l   1        ; offset: $48 (72)
  681. ioVSeqNum                 ds.w   1        ; offset: $4C (76)
  682. ioVWrCnt                 ds.l   1        ; offset: $4E (78)
  683. ioVFilCnt                 ds.l   1        ; offset: $52 (82)
  684. ioVDirCnt                 ds.l   1        ; offset: $56 (86)
  685. ioVFndrInfo                 ds.l   8        ; offset: $5A (90)
  686. sizeof                     EQU *            ; size:   $7A (122)
  687.                         ENDR
  688.  
  689. ; typedef struct HVolumeParam  HVolumeParam, *HVolumeParamPtr
  690.  
  691. ; Large Volume Constants 
  692. kWidePosOffsetBit                EQU        8
  693. kMaximumBlocksIn4GB                EQU        $007FFFFF
  694.  
  695. XIOParam                 RECORD    0
  696. qLink                     ds.l   1        ; offset: $0 (0)
  697. qType                     ds.w   1        ; offset: $4 (4)
  698. ioTrap                     ds.w   1        ; offset: $6 (6)
  699. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  700. ioCompletion             ds.l   1        ; offset: $C (12)
  701. ioResult                 ds.w   1        ; offset: $10 (16)
  702. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  703. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  704. ioRefNum                 ds.w   1        ; offset: $18 (24)
  705. ioVersNum                 ds.b   1        ; offset: $1A (26)
  706. ioPermssn                 ds.b   1        ; offset: $1B (27)
  707. ioMisc                     ds.l   1        ; offset: $1C (28)
  708. ioBuffer                 ds.l   1        ; offset: $20 (32)
  709. ioReqCount                 ds.l   1        ; offset: $24 (36)
  710. ioActCount                 ds.l   1        ; offset: $28 (40)
  711. ioPosMode                 ds.w   1        ; offset: $2C (44)        ; must have kUseWidePositioning bit set 
  712. ioWPosOffset             ds     wide    ; offset: $2E (46)        ; wide positioning offset 
  713. sizeof                     EQU *            ; size:   $36 (54)
  714.                         ENDR
  715.  
  716. ; typedef struct XIOParam     XIOParam, *XIOParamPtr
  717. XVolumeParam             RECORD    0
  718. qLink                     ds.l   1        ; offset: $0 (0)
  719. qType                     ds.w   1        ; offset: $4 (4)
  720. ioTrap                     ds.w   1        ; offset: $6 (6)
  721. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  722. ioCompletion             ds.l   1        ; offset: $C (12)
  723. ioResult                 ds.w   1        ; offset: $10 (16)
  724. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  725. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  726. ioXVersion                 ds.l   1        ; offset: $18 (24)        ; this XVolumeParam version (0) 
  727. ioVolIndex                 ds.w   1        ; offset: $1C (28)
  728. ioVCrDate                 ds.l   1        ; offset: $1E (30)
  729. ioVLsMod                 ds.l   1        ; offset: $22 (34)
  730. ioVAtrb                     ds.w   1        ; offset: $26 (38)
  731. ioVNmFls                 ds.w   1        ; offset: $28 (40)
  732. ioVBitMap                 ds.w   1        ; offset: $2A (42)
  733. ioAllocPtr                 ds.w   1        ; offset: $2C (44)
  734. ioVNmAlBlks                 ds.w   1        ; offset: $2E (46)
  735. ioVAlBlkSiz                 ds.l   1        ; offset: $30 (48)
  736. ioVClpSiz                 ds.l   1        ; offset: $34 (52)
  737. ioAlBlSt                 ds.w   1        ; offset: $38 (56)
  738. ioVNxtCNID                 ds.l   1        ; offset: $3A (58)
  739. ioVFrBlk                 ds.w   1        ; offset: $3E (62)
  740. ioVSigWord                 ds.w   1        ; offset: $40 (64)
  741. ioVDrvInfo                 ds.w   1        ; offset: $42 (66)
  742. ioVDRefNum                 ds.w   1        ; offset: $44 (68)
  743. ioVFSID                     ds.w   1        ; offset: $46 (70)
  744. ioVBkUp                     ds.l   1        ; offset: $48 (72)
  745. ioVSeqNum                 ds.w   1        ; offset: $4C (76)
  746. ioVWrCnt                 ds.l   1        ; offset: $4E (78)
  747. ioVFilCnt                 ds.l   1        ; offset: $52 (82)
  748. ioVDirCnt                 ds.l   1        ; offset: $56 (86)
  749. ioVFndrInfo                 ds.l   8        ; offset: $5A (90)
  750. ioVTotalBytes             ds     UnsignedWide ; offset: $7A (122) ; total number of bytes on volume 
  751. ioVFreeBytes             ds     UnsignedWide ; offset: $82 (130) ; number of free bytes on volume 
  752. sizeof                     EQU *            ; size:   $8A (138)
  753.                         ENDR
  754.  
  755. ; typedef struct XVolumeParam  XVolumeParam, *XVolumeParamPtr
  756. AccessParam             RECORD    0
  757. qLink                     ds.l   1        ; offset: $0 (0)
  758. qType                     ds.w   1        ; offset: $4 (4)
  759. ioTrap                     ds.w   1        ; offset: $6 (6)
  760. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  761. ioCompletion             ds.l   1        ; offset: $C (12)
  762. ioResult                 ds.w   1        ; offset: $10 (16)
  763. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  764. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  765. filler3                     ds.w   1        ; offset: $18 (24)
  766. ioDenyModes                 ds.w   1        ; offset: $1A (26)
  767. filler4                     ds.w   1        ; offset: $1C (28)
  768. filler5                     ds.b   1        ; offset: $1E (30)
  769. ioACUser                 ds.b   1        ; offset: $1F (31)
  770. filler6                     ds.l   1        ; offset: $20 (32)
  771. ioACOwnerID                 ds.l   1        ; offset: $24 (36)
  772. ioACGroupID                 ds.l   1        ; offset: $28 (40)
  773. ioACAccess                 ds.l   1        ; offset: $2C (44)
  774. ioDirID                     ds.l   1        ; offset: $30 (48)
  775. sizeof                     EQU *            ; size:   $34 (52)
  776.                         ENDR
  777.  
  778. ; typedef struct AccessParam  AccessParam, *AccessParamPtr
  779. ObjParam                 RECORD    0
  780. qLink                     ds.l   1        ; offset: $0 (0)
  781. qType                     ds.w   1        ; offset: $4 (4)
  782. ioTrap                     ds.w   1        ; offset: $6 (6)
  783. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  784. ioCompletion             ds.l   1        ; offset: $C (12)
  785. ioResult                 ds.w   1        ; offset: $10 (16)
  786. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  787. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  788. filler7                     ds.w   1        ; offset: $18 (24)
  789. ioObjType                 ds.w   1        ; offset: $1A (26)
  790. ioObjNamePtr             ds.l   1        ; offset: $1C (28)
  791. ioObjID                     ds.l   1        ; offset: $20 (32)
  792. sizeof                     EQU *            ; size:   $24 (36)
  793.                         ENDR
  794.  
  795. ; typedef struct ObjParam     ObjParam, *ObjParamPtr
  796. CopyParam                 RECORD    0
  797. qLink                     ds.l   1        ; offset: $0 (0)
  798. qType                     ds.w   1        ; offset: $4 (4)
  799. ioTrap                     ds.w   1        ; offset: $6 (6)
  800. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  801. ioCompletion             ds.l   1        ; offset: $C (12)
  802. ioResult                 ds.w   1        ; offset: $10 (16)
  803. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  804. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  805. ioDstVRefNum             ds.w   1        ; offset: $18 (24)
  806. filler8                     ds.w   1        ; offset: $1A (26)
  807. ioNewName                 ds.l   1        ; offset: $1C (28)
  808. ioCopyName                 ds.l   1        ; offset: $20 (32)
  809. ioNewDirID                 ds.l   1        ; offset: $24 (36)
  810. filler14                 ds.l   1        ; offset: $28 (40)
  811. filler15                 ds.l   1        ; offset: $2C (44)
  812. ioDirID                     ds.l   1        ; offset: $30 (48)
  813. sizeof                     EQU *            ; size:   $34 (52)
  814.                         ENDR
  815.  
  816. ; typedef struct CopyParam     CopyParam, *CopyParamPtr
  817. WDParam                 RECORD    0
  818. qLink                     ds.l   1        ; offset: $0 (0)
  819. qType                     ds.w   1        ; offset: $4 (4)
  820. ioTrap                     ds.w   1        ; offset: $6 (6)
  821. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  822. ioCompletion             ds.l   1        ; offset: $C (12)
  823. ioResult                 ds.w   1        ; offset: $10 (16)
  824. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  825. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  826. filler9                     ds.w   1        ; offset: $18 (24)
  827. ioWDIndex                 ds.w   1        ; offset: $1A (26)
  828. ioWDProcID                 ds.l   1        ; offset: $1C (28)
  829. ioWDVRefNum                 ds.w   1        ; offset: $20 (32)
  830. filler10                 ds.w   1        ; offset: $22 (34)
  831. filler11                 ds.l   1        ; offset: $24 (36)
  832. filler12                 ds.l   1        ; offset: $28 (40)
  833. filler13                 ds.l   1        ; offset: $2C (44)
  834. ioWDDirID                 ds.l   1        ; offset: $30 (48)
  835. sizeof                     EQU *            ; size:   $34 (52)
  836.                         ENDR
  837.  
  838. ; typedef struct WDParam     WDParam, *WDParamPtr
  839. FIDParam                 RECORD    0
  840. qLink                     ds.l   1        ; offset: $0 (0)
  841. qType                     ds.w   1        ; offset: $4 (4)
  842. ioTrap                     ds.w   1        ; offset: $6 (6)
  843. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  844. ioCompletion             ds.l   1        ; offset: $C (12)
  845. ioResult                 ds.w   1        ; offset: $10 (16)
  846. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  847. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  848. filler14                 ds.l   1        ; offset: $18 (24)
  849. ioDestNamePtr             ds.l   1        ; offset: $1C (28)
  850. filler15                 ds.l   1        ; offset: $20 (32)
  851. ioDestDirID                 ds.l   1        ; offset: $24 (36)
  852. filler16                 ds.l   1        ; offset: $28 (40)
  853. filler17                 ds.l   1        ; offset: $2C (44)
  854. ioSrcDirID                 ds.l   1        ; offset: $30 (48)
  855. filler18                 ds.w   1        ; offset: $34 (52)
  856. ioFileID                 ds.l   1        ; offset: $36 (54)
  857. sizeof                     EQU *            ; size:   $3A (58)
  858.                         ENDR
  859.  
  860. ; typedef struct FIDParam     FIDParam, *FIDParamPtr
  861. ForeignPrivParam         RECORD    0
  862. qLink                     ds.l   1        ; offset: $0 (0)
  863. qType                     ds.w   1        ; offset: $4 (4)
  864. ioTrap                     ds.w   1        ; offset: $6 (6)
  865. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  866. ioCompletion             ds.l   1        ; offset: $C (12)
  867. ioResult                 ds.w   1        ; offset: $10 (16)
  868. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  869. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  870. ioFiller21                 ds.l   1        ; offset: $18 (24)
  871. ioFiller22                 ds.l   1        ; offset: $1C (28)
  872. ioForeignPrivBuffer         ds.l   1        ; offset: $20 (32)
  873. ioForeignPrivActCount     ds.l   1        ; offset: $24 (36)
  874. ioForeignPrivReqCount     ds.l   1        ; offset: $28 (40)
  875. ioFiller23                 ds.l   1        ; offset: $2C (44)
  876. ioForeignPrivDirID         ds.l   1        ; offset: $30 (48)
  877. ioForeignPrivInfo1         ds.l   1        ; offset: $34 (52)
  878. ioForeignPrivInfo2         ds.l   1        ; offset: $38 (56)
  879. ioForeignPrivInfo3         ds.l   1        ; offset: $3C (60)
  880. ioForeignPrivInfo4         ds.l   1        ; offset: $40 (64)
  881. sizeof                     EQU *            ; size:   $44 (68)
  882.                         ENDR
  883.  
  884. ; typedef struct ForeignPrivParam  ForeignPrivParam, *ForeignPrivParamPtr
  885. HParamBlockRec             RECORD    0
  886. qLink                     ds.l   1        ; offset: $0 (0)
  887. qType                     ds.w   1        ; offset: $4 (4)
  888. ioTrap                     ds.w   1        ; offset: $6 (6)
  889. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  890. ioCompletion             ds.l   1        ; offset: $C (12)
  891. ioResult                 ds.w   1        ; offset: $10 (16)
  892. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  893. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  894. ioRefNum                 ds.w   1        ; offset: $18 (24)
  895. ioVersNum                 ds.b   1        ; offset: $1A (26)
  896. ioPermssn                 ds.b   1        ; offset: $1B (27)
  897. ioMisc                     ds.l   1        ; offset: $1C (28)
  898. ioBuffer                 ds.l   1        ; offset: $20 (32)
  899. ioReqCount                 ds.l   1        ; offset: $24 (36)
  900. ioActCount                 ds.l   1        ; offset: $28 (40)
  901. ioPosMode                 ds.w   1        ; offset: $2C (44)
  902. ioPosOffset                 ds.l   1        ; offset: $2E (46)
  903.                          ORG 24
  904. ioFRefNum                 ds.w   1        ; offset: $18 (24)
  905. ioFVersNum                 ds.b   1        ; offset: $1A (26)
  906. filler1                     ds.b   1        ; offset: $1B (27)
  907. ioFDirIndex                 ds.w   1        ; offset: $1C (28)
  908. ioFlAttrib                 ds.b   1        ; offset: $1E (30)
  909. ioFlVersNum                 ds.b   1        ; offset: $1F (31)
  910. ioFlFndrInfo             ds     FInfo    ; offset: $20 (32)
  911. ioDirID                     ds.l   1        ; offset: $30 (48)
  912. ioFlStBlk                 ds.w   1        ; offset: $34 (52)
  913. ioFlLgLen                 ds.l   1        ; offset: $36 (54)
  914. ioFlPyLen                 ds.l   1        ; offset: $3A (58)
  915. ioFlRStBlk                 ds.w   1        ; offset: $3E (62)
  916. ioFlRLgLen                 ds.l   1        ; offset: $40 (64)
  917. ioFlRPyLen                 ds.l   1        ; offset: $44 (68)
  918. ioFlCrDat                 ds.l   1        ; offset: $48 (72)
  919. ioFlMdDat                 ds.l   1        ; offset: $4C (76)
  920.                          ORG 24
  921. filler2                     ds.l   1        ; offset: $18 (24)
  922. ioVolIndex                 ds.w   1        ; offset: $1C (28)
  923. ioVCrDate                 ds.l   1        ; offset: $1E (30)
  924. ioVLsMod                 ds.l   1        ; offset: $22 (34)
  925. ioVAtrb                     ds.w   1        ; offset: $26 (38)
  926. ioVNmFls                 ds.w   1        ; offset: $28 (40)
  927. ioVBitMap                 ds.w   1        ; offset: $2A (42)
  928. ioAllocPtr                 ds.w   1        ; offset: $2C (44)
  929. ioVNmAlBlks                 ds.w   1        ; offset: $2E (46)
  930. ioVAlBlkSiz                 ds.l   1        ; offset: $30 (48)
  931. ioVClpSiz                 ds.l   1        ; offset: $34 (52)
  932. ioAlBlSt                 ds.w   1        ; offset: $38 (56)
  933. ioVNxtCNID                 ds.l   1        ; offset: $3A (58)
  934. ioVFrBlk                 ds.w   1        ; offset: $3E (62)
  935. ioVSigWord                 ds.w   1        ; offset: $40 (64)
  936. ioVDrvInfo                 ds.w   1        ; offset: $42 (66)
  937. ioVDRefNum                 ds.w   1        ; offset: $44 (68)
  938. ioVFSID                     ds.w   1        ; offset: $46 (70)
  939. ioVBkUp                     ds.l   1        ; offset: $48 (72)
  940. ioVSeqNum                 ds.w   1        ; offset: $4C (76)
  941. ioVWrCnt                 ds.l   1        ; offset: $4E (78)
  942. ioVFilCnt                 ds.l   1        ; offset: $52 (82)
  943. ioVDirCnt                 ds.l   1        ; offset: $56 (86)
  944. ioVFndrInfo                 ds.l   8        ; offset: $5A (90)
  945.                          ORG 24
  946. filler3                     ds.w   1        ; offset: $18 (24)
  947. ioDenyModes                 ds.w   1        ; offset: $1A (26)
  948. filler4                     ds.w   1        ; offset: $1C (28)
  949. filler5                     ds.b   1        ; offset: $1E (30)
  950. ioACUser                 ds.b   1        ; offset: $1F (31)
  951. filler6                     ds.l   1        ; offset: $20 (32)
  952. ioACOwnerID                 ds.l   1        ; offset: $24 (36)
  953. ioACGroupID                 ds.l   1        ; offset: $28 (40)
  954. ioACAccess                 ds.l   1        ; offset: $2C (44)
  955.                          ORG 24
  956. filler7                     ds.w   1        ; offset: $18 (24)
  957. ioObjType                 ds.w   1        ; offset: $1A (26)
  958. ioObjNamePtr             ds.l   1        ; offset: $1C (28)
  959. ioObjID                     ds.l   1        ; offset: $20 (32)
  960.                          ORG 24
  961. ioDstVRefNum             ds.w   1        ; offset: $18 (24)
  962. filler8                     ds.w   1        ; offset: $1A (26)
  963. ioNewName                 ds.l   1        ; offset: $1C (28)
  964. ioCopyName                 ds.l   1        ; offset: $20 (32)
  965. ioNewDirID                 ds.l   1        ; offset: $24 (36)
  966.                          ORG 24
  967. filler9                     ds.w   1        ; offset: $18 (24)
  968. ioWDIndex                 ds.w   1        ; offset: $1A (26)
  969. ioWDProcID                 ds.l   1        ; offset: $1C (28)
  970. ioWDVRefNum                 ds.w   1        ; offset: $20 (32)
  971. filler10                 ds.w   1        ; offset: $22 (34)
  972. filler11                 ds.l   1        ; offset: $24 (36)
  973. filler12                 ds.l   1        ; offset: $28 (40)
  974. filler13                 ds.l   1        ; offset: $2C (44)
  975. ioWDDirID                 ds.l   1        ; offset: $30 (48)
  976.                          ORG 24
  977. filler14                 ds.l   1        ; offset: $18 (24)
  978. ioDestNamePtr             ds.l   1        ; offset: $1C (28)
  979. filler15                 ds.l   1        ; offset: $20 (32)
  980. ioDestDirID                 ds.l   1        ; offset: $24 (36)
  981. filler16                 ds.l   1        ; offset: $28 (40)
  982. filler17                 ds.l   1        ; offset: $2C (44)
  983. ioSrcDirID                 ds.l   1        ; offset: $30 (48)
  984. filler18                 ds.w   1        ; offset: $34 (52)
  985. ioFileID                 ds.l   1        ; offset: $36 (54)
  986.                          ORG 24
  987. ioMatchPtr                 ds.l   1        ; offset: $18 (24)
  988. ioReqMatchCount             ds.l   1        ; offset: $1C (28)
  989. ioActMatchCount             ds.l   1        ; offset: $20 (32)
  990. ioSearchBits             ds.l   1        ; offset: $24 (36)
  991. ioSearchInfo1             ds.l   1        ; offset: $28 (40)
  992. ioSearchInfo2             ds.l   1        ; offset: $2C (44)
  993. ioSearchTime             ds.l   1        ; offset: $30 (48)
  994. ioCatPosition             ds     CatPositionRec ; offset: $34 (52)
  995. ioOptBuffer                 ds.l   1        ; offset: $44 (68)
  996. ioOptBufSize             ds.l   1        ; offset: $48 (72)
  997.                          ORG 24
  998. ioFiller21                 ds.l   1        ; offset: $18 (24)
  999. ioFiller22                 ds.l   1        ; offset: $1C (28)
  1000. ioForeignPrivBuffer         ds.l   1        ; offset: $20 (32)
  1001. ioForeignPrivActCount     ds.l   1        ; offset: $24 (36)
  1002. ioForeignPrivReqCount     ds.l   1        ; offset: $28 (40)
  1003. ioFiller23                 ds.l   1        ; offset: $2C (44)
  1004. ioForeignPrivDirID         ds.l   1        ; offset: $30 (48)
  1005. ioForeignPrivInfo1         ds.l   1        ; offset: $34 (52)
  1006. ioForeignPrivInfo2         ds.l   1        ; offset: $38 (56)
  1007. ioForeignPrivInfo3         ds.l   1        ; offset: $3C (60)
  1008. ioForeignPrivInfo4         ds.l   1        ; offset: $40 (64)
  1009.                          ORG 122
  1010. sizeof                     EQU *            ; size:   $7A (122)
  1011.                         ENDR
  1012.  
  1013. ; typedef HParamBlockRec     *HParmBlkPtr
  1014. CMovePBRec                 RECORD    0
  1015. qLink                     ds.l   1        ; offset: $0 (0)
  1016. qType                     ds.w   1        ; offset: $4 (4)
  1017. ioTrap                     ds.w   1        ; offset: $6 (6)
  1018. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  1019. ioCompletion             ds.l   1        ; offset: $C (12)
  1020. ioResult                 ds.w   1        ; offset: $10 (16)
  1021. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  1022. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  1023. filler1                     ds.l   1        ; offset: $18 (24)
  1024. ioNewName                 ds.l   1        ; offset: $1C (28)
  1025. filler2                     ds.l   1        ; offset: $20 (32)
  1026. ioNewDirID                 ds.l   1        ; offset: $24 (36)
  1027. filler3                     ds.l   2        ; offset: $28 (40)
  1028. ioDirID                     ds.l   1        ; offset: $30 (48)
  1029. sizeof                     EQU *            ; size:   $34 (52)
  1030.                         ENDR
  1031.  
  1032. ; typedef struct CMovePBRec  CMovePBRec
  1033. ; typedef CMovePBRec         *CMovePBPtr
  1034. WDPBRec                 RECORD    0
  1035. qLink                     ds.l   1        ; offset: $0 (0)
  1036. qType                     ds.w   1        ; offset: $4 (4)
  1037. ioTrap                     ds.w   1        ; offset: $6 (6)
  1038. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  1039. ioCompletion             ds.l   1        ; offset: $C (12)
  1040. ioResult                 ds.w   1        ; offset: $10 (16)
  1041. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  1042. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  1043. filler1                     ds.w   1        ; offset: $18 (24)
  1044. ioWDIndex                 ds.w   1        ; offset: $1A (26)
  1045. ioWDProcID                 ds.l   1        ; offset: $1C (28)
  1046. ioWDVRefNum                 ds.w   1        ; offset: $20 (32)
  1047. filler2                     ds.w   7        ; offset: $22 (34)
  1048. ioWDDirID                 ds.l   1        ; offset: $30 (48)
  1049. sizeof                     EQU *            ; size:   $34 (52)
  1050.                         ENDR
  1051.  
  1052. ; typedef struct WDPBRec     WDPBRec
  1053. ; typedef WDPBRec             *WDPBPtr
  1054. FCBPBRec                 RECORD    0
  1055. qLink                     ds.l   1        ; offset: $0 (0)
  1056. qType                     ds.w   1        ; offset: $4 (4)
  1057. ioTrap                     ds.w   1        ; offset: $6 (6)
  1058. ioCmdAddr                 ds.l   1        ; offset: $8 (8)
  1059. ioCompletion             ds.l   1        ; offset: $C (12)
  1060. ioResult                 ds.w   1        ; offset: $10 (16)
  1061. ioNamePtr                 ds.l   1        ; offset: $12 (18)
  1062. ioVRefNum                 ds.w   1        ; offset: $16 (22)
  1063. ioRefNum                 ds.w   1        ; offset: $18 (24)
  1064. filler                     ds.w   1        ; offset: $1A (26)
  1065. ioFCBIndx                 ds.w   1        ; offset: $1C (28)
  1066. filler1                     ds.w   1        ; offset: $1E (30)
  1067. ioFCBFlNm                 ds.l   1        ; offset: $20 (32)
  1068. ioFCBFlags                 ds.w   1        ; offset: $24 (36)
  1069. ioFCBStBlk                 ds.w   1        ; offset: $26 (38)
  1070. ioFCBEOF                 ds.l   1        ; offset: $28 (40)
  1071. ioFCBPLen                 ds.l   1        ; offset: $2C (44)
  1072. ioFCBCrPs                 ds.l   1        ; offset: $30 (48)
  1073. ioFCBVRefNum             ds.w   1        ; offset: $34 (52)
  1074. ioFCBClpSiz                 ds.l   1        ; offset: $36 (54)
  1075. ioFCBParID                 ds.l   1        ; offset: $3A (58)
  1076. sizeof                     EQU *            ; size:   $3E (62)
  1077.                         ENDR
  1078.  
  1079. ; typedef struct FCBPBRec     FCBPBRec
  1080. ; typedef FCBPBRec             *FCBPBPtr
  1081. VCB                     RECORD    0
  1082. qLink                     ds.l   1        ; offset: $0 (0)
  1083. qType                     ds.w   1        ; offset: $4 (4)
  1084. vcbFlags                 ds.w   1        ; offset: $6 (6)
  1085. vcbSigWord                 ds.w   1        ; offset: $8 (8)
  1086. vcbCrDate                 ds.l   1        ; offset: $A (10)
  1087. vcbLsMod                 ds.l   1        ; offset: $E (14)
  1088. vcbAtrb                     ds.w   1        ; offset: $12 (18)
  1089. vcbNmFls                 ds.w   1        ; offset: $14 (20)
  1090. vcbVBMSt                 ds.w   1        ; offset: $16 (22)
  1091. vcbAllocPtr                 ds.w   1        ; offset: $18 (24)
  1092. vcbNmAlBlks                 ds.w   1        ; offset: $1A (26)
  1093. vcbAlBlkSiz                 ds.l   1        ; offset: $1C (28)
  1094. vcbClpSiz                 ds.l   1        ; offset: $20 (32)
  1095. vcbAlBlSt                 ds.w   1        ; offset: $24 (36)
  1096. vcbNxtCNID                 ds.l   1        ; offset: $26 (38)
  1097. vcbFreeBks                 ds.w   1        ; offset: $2A (42)
  1098. vcbVN                     ds.l   7        ; offset: $2C (44)
  1099. vcbDrvNum                 ds.w   1        ; offset: $48 (72)
  1100. vcbDRefNum                 ds.w   1        ; offset: $4A (74)
  1101. vcbFSID                     ds.w   1        ; offset: $4C (76)
  1102. vcbVRefNum                 ds.w   1        ; offset: $4E (78)
  1103. vcbMAdr                     ds.l   1        ; offset: $50 (80)
  1104. vcbBufAdr                 ds.l   1        ; offset: $54 (84)
  1105. vcbMLen                     ds.w   1        ; offset: $58 (88)
  1106. vcbDirIndex                 ds.w   1        ; offset: $5A (90)
  1107. vcbDirBlk                 ds.w   1        ; offset: $5C (92)
  1108. vcbVolBkUp                 ds.l   1        ; offset: $5E (94)
  1109. vcbVSeqNum                 ds.w   1        ; offset: $62 (98)
  1110. vcbWrCnt                 ds.l   1        ; offset: $64 (100)
  1111. vcbXTClpSiz                 ds.l   1        ; offset: $68 (104)
  1112. vcbCTClpSiz                 ds.l   1        ; offset: $6C (108)
  1113. vcbNmRtDirs                 ds.w   1        ; offset: $70 (112)
  1114. vcbFilCnt                 ds.l   1        ; offset: $72 (114)
  1115. vcbDirCnt                 ds.l   1        ; offset: $76 (118)
  1116. vcbFndrInfo                 ds.l   8        ; offset: $7A (122)
  1117. vcbVCSize                 ds.w   1        ; offset: $9A (154)
  1118. vcbVBMCSiz                 ds.w   1        ; offset: $9C (156)
  1119. vcbCtlCSiz                 ds.w   1        ; offset: $9E (158)
  1120. vcbXTAlBlks                 ds.w   1        ; offset: $A0 (160)
  1121. vcbCTAlBlks                 ds.w   1        ; offset: $A2 (162)
  1122. vcbXTRef                 ds.w   1        ; offset: $A4 (164)
  1123. vcbCTRef                 ds.w   1        ; offset: $A6 (166)
  1124. vcbCtlBuf                 ds.l   1        ; offset: $A8 (168)
  1125. vcbDirIDM                 ds.l   1        ; offset: $AC (172)
  1126. vcbOffsM                 ds.w   1        ; offset: $B0 (176)
  1127. sizeof                     EQU *            ; size:   $B2 (178)
  1128.                         ENDR
  1129.  
  1130. ; typedef struct VCB         VCB
  1131.     IF ¬ OLDROUTINELOCATIONS  THEN
  1132. ; typedef VCB                 *VCBPtr
  1133.     ENDIF
  1134. DrvQEl                     RECORD    0
  1135. qLink                     ds.l   1        ; offset: $0 (0)
  1136. qType                     ds.w   1        ; offset: $4 (4)
  1137. dQDrive                     ds.w   1        ; offset: $6 (6)
  1138. dQRefNum                 ds.w   1        ; offset: $8 (8)
  1139. dQFSID                     ds.w   1        ; offset: $A (10)
  1140. dQDrvSz                     ds.w   1        ; offset: $C (12)
  1141. dQDrvSz2                 ds.w   1        ; offset: $E (14)
  1142. sizeof                     EQU *            ; size:   $10 (16)
  1143.                         ENDR
  1144.  
  1145. ; typedef struct DrvQEl     DrvQEl
  1146. ; typedef DrvQEl             *DrvQElPtr
  1147.     IF OLDROUTINELOCATIONS  THEN
  1148. ;
  1149. ; pascal OSErr PBOpenSync(ParmBlkPtr paramBlock)
  1150. ;
  1151.     IF ¬ GENERATINGCFM THEN
  1152.         ; parameters: 
  1153.         ;     paramBlock        => A0
  1154.         ; returns: 
  1155.         ;     OSErr             <= D0
  1156.         _PBOpenSync:    OPWORD    $A000
  1157.     ELSE
  1158.         IMPORT_CFM_FUNCTION    PBOpenSync
  1159.     ENDIF
  1160.  
  1161. ;
  1162. ; pascal OSErr PBOpenAsync(ParmBlkPtr paramBlock)
  1163. ;
  1164.     IF ¬ GENERATINGCFM THEN
  1165.         ; parameters: 
  1166.         ;     paramBlock        => A0
  1167.         ; returns: 
  1168.         ;     OSErr             <= D0
  1169.         _PBOpenAsync:    OPWORD    $A400
  1170.     ELSE
  1171.         IMPORT_CFM_FUNCTION    PBOpenAsync
  1172.     ENDIF
  1173.  
  1174. ;
  1175. ; pascal OSErr PBOpenImmed(ParmBlkPtr paramBlock)
  1176. ;
  1177.     IF ¬ GENERATINGCFM THEN
  1178.         ; parameters: 
  1179.         ;     paramBlock        => A0
  1180.         ; returns: 
  1181.         ;     OSErr             <= D0
  1182.         _PBOpenImmed:    OPWORD    $A200
  1183.     ELSE
  1184.         IMPORT_CFM_FUNCTION    PBOpenImmed
  1185.     ENDIF
  1186.  
  1187. ;
  1188. ; pascal OSErr PBCloseSync(ParmBlkPtr paramBlock)
  1189. ;
  1190.     IF ¬ GENERATINGCFM THEN
  1191.         ; parameters: 
  1192.         ;     paramBlock        => A0
  1193.         ; returns: 
  1194.         ;     OSErr             <= D0
  1195.         _PBCloseSync:    OPWORD    $A001
  1196.     ELSE
  1197.         IMPORT_CFM_FUNCTION    PBCloseSync
  1198.     ENDIF
  1199.  
  1200. ;
  1201. ; pascal OSErr PBCloseAsync(ParmBlkPtr paramBlock)
  1202. ;
  1203.     IF ¬ GENERATINGCFM THEN
  1204.         ; parameters: 
  1205.         ;     paramBlock        => A0
  1206.         ; returns: 
  1207.         ;     OSErr             <= D0
  1208.         _PBCloseAsync:    OPWORD    $A401
  1209.     ELSE
  1210.         IMPORT_CFM_FUNCTION    PBCloseAsync
  1211.     ENDIF
  1212.  
  1213. ;
  1214. ; pascal OSErr PBCloseImmed(ParmBlkPtr paramBlock)
  1215. ;
  1216.     IF ¬ GENERATINGCFM THEN
  1217.         ; parameters: 
  1218.         ;     paramBlock        => A0
  1219.         ; returns: 
  1220.         ;     OSErr             <= D0
  1221.         _PBCloseImmed:    OPWORD    $A201
  1222.     ELSE
  1223.         IMPORT_CFM_FUNCTION    PBCloseImmed
  1224.     ENDIF
  1225.  
  1226. ;
  1227. ; pascal OSErr PBReadSync(ParmBlkPtr paramBlock)
  1228. ;
  1229.     IF ¬ GENERATINGCFM THEN
  1230.         ; parameters: 
  1231.         ;     paramBlock        => A0
  1232.         ; returns: 
  1233.         ;     OSErr             <= D0
  1234.         _PBReadSync:    OPWORD    $A002
  1235.     ELSE
  1236.         IMPORT_CFM_FUNCTION    PBReadSync
  1237.     ENDIF
  1238.  
  1239. ;
  1240. ; pascal OSErr PBReadAsync(ParmBlkPtr paramBlock)
  1241. ;
  1242.     IF ¬ GENERATINGCFM THEN
  1243.         ; parameters: 
  1244.         ;     paramBlock        => A0
  1245.         ; returns: 
  1246.         ;     OSErr             <= D0
  1247.         _PBReadAsync:    OPWORD    $A402
  1248.     ELSE
  1249.         IMPORT_CFM_FUNCTION    PBReadAsync
  1250.     ENDIF
  1251.  
  1252. ;
  1253. ; pascal OSErr PBReadImmed(ParmBlkPtr paramBlock)
  1254. ;
  1255.     IF ¬ GENERATINGCFM THEN
  1256.         ; parameters: 
  1257.         ;     paramBlock        => A0
  1258.         ; returns: 
  1259.         ;     OSErr             <= D0
  1260.         _PBReadImmed:    OPWORD    $A202
  1261.     ELSE
  1262.         IMPORT_CFM_FUNCTION    PBReadImmed
  1263.     ENDIF
  1264.  
  1265. ;
  1266. ; pascal OSErr PBWriteSync(ParmBlkPtr paramBlock)
  1267. ;
  1268.     IF ¬ GENERATINGCFM THEN
  1269.         ; parameters: 
  1270.         ;     paramBlock        => A0
  1271.         ; returns: 
  1272.         ;     OSErr             <= D0
  1273.         _PBWriteSync:    OPWORD    $A003
  1274.     ELSE
  1275.         IMPORT_CFM_FUNCTION    PBWriteSync
  1276.     ENDIF
  1277.  
  1278. ;
  1279. ; pascal OSErr PBWriteAsync(ParmBlkPtr paramBlock)
  1280. ;
  1281.     IF ¬ GENERATINGCFM THEN
  1282.         ; parameters: 
  1283.         ;     paramBlock        => A0
  1284.         ; returns: 
  1285.         ;     OSErr             <= D0
  1286.         _PBWriteAsync:    OPWORD    $A403
  1287.     ELSE
  1288.         IMPORT_CFM_FUNCTION    PBWriteAsync
  1289.     ENDIF
  1290.  
  1291. ;
  1292. ; pascal OSErr PBWriteImmed(ParmBlkPtr paramBlock)
  1293. ;
  1294.     IF ¬ GENERATINGCFM THEN
  1295.         ; parameters: 
  1296.         ;     paramBlock        => A0
  1297.         ; returns: 
  1298.         ;     OSErr             <= D0
  1299.         _PBWriteImmed:    OPWORD    $A203
  1300.     ELSE
  1301.         IMPORT_CFM_FUNCTION    PBWriteImmed
  1302.     ENDIF
  1303.  
  1304.     ENDIF
  1305. ;
  1306. ; pascal OSErr PBGetVInfoSync(ParmBlkPtr paramBlock)
  1307. ;
  1308.     IF ¬ GENERATINGCFM THEN
  1309.         ; parameters: 
  1310.         ;     paramBlock        => A0
  1311.         ; returns: 
  1312.         ;     OSErr             <= D0
  1313.         _PBGetVInfoSync:    OPWORD    $A007
  1314.     ELSE
  1315.         IMPORT_CFM_FUNCTION    PBGetVInfoSync
  1316.     ENDIF
  1317.  
  1318. ;
  1319. ; pascal OSErr PBGetVInfoAsync(ParmBlkPtr paramBlock)
  1320. ;
  1321.     IF ¬ GENERATINGCFM THEN
  1322.         ; parameters: 
  1323.         ;     paramBlock        => A0
  1324.         ; returns: 
  1325.         ;     OSErr             <= D0
  1326.         _PBGetVInfoAsync:    OPWORD    $A407
  1327.     ELSE
  1328.         IMPORT_CFM_FUNCTION    PBGetVInfoAsync
  1329.     ENDIF
  1330.  
  1331. ;
  1332. ; pascal OSErr PBXGetVolInfoSync(XVolumeParamPtr paramBlock)
  1333. ;
  1334.     IF ¬ GENERATINGCFM THEN
  1335.         ; parameters: 
  1336.         ;     paramBlock        => A0
  1337.         ; returns: 
  1338.         ;     OSErr             <= D0
  1339.         Macro
  1340.         _PBXGetVolInfoSync
  1341.             moveq    #18,d0
  1342.             dc.w     $A060
  1343.         EndM
  1344.     ELSE
  1345.         IMPORT_CFM_FUNCTION    PBXGetVolInfoSync
  1346.     ENDIF
  1347.  
  1348. ;
  1349. ; pascal OSErr PBXGetVolInfoAsync(XVolumeParamPtr paramBlock)
  1350. ;
  1351.     IF ¬ GENERATINGCFM THEN
  1352.         ; parameters: 
  1353.         ;     paramBlock        => A0
  1354.         ; returns: 
  1355.         ;     OSErr             <= D0
  1356.         Macro
  1357.         _PBXGetVolInfoAsync
  1358.             moveq    #18,d0
  1359.             dc.w     $A460
  1360.         EndM
  1361.     ELSE
  1362.         IMPORT_CFM_FUNCTION    PBXGetVolInfoAsync
  1363.     ENDIF
  1364.  
  1365. ;
  1366. ; pascal OSErr PBGetVolSync(ParmBlkPtr paramBlock)
  1367. ;
  1368.     IF ¬ GENERATINGCFM THEN
  1369.         ; parameters: 
  1370.         ;     paramBlock        => A0
  1371.         ; returns: 
  1372.         ;     OSErr             <= D0
  1373.         _PBGetVolSync:    OPWORD    $A014
  1374.     ELSE
  1375.         IMPORT_CFM_FUNCTION    PBGetVolSync
  1376.     ENDIF
  1377.  
  1378. ;
  1379. ; pascal OSErr PBGetVolAsync(ParmBlkPtr paramBlock)
  1380. ;
  1381.     IF ¬ GENERATINGCFM THEN
  1382.         ; parameters: 
  1383.         ;     paramBlock        => A0
  1384.         ; returns: 
  1385.         ;     OSErr             <= D0
  1386.         _PBGetVolAsync:    OPWORD    $A414
  1387.     ELSE
  1388.         IMPORT_CFM_FUNCTION    PBGetVolAsync
  1389.     ENDIF
  1390.  
  1391. ;
  1392. ; pascal OSErr PBSetVolSync(ParmBlkPtr paramBlock)
  1393. ;
  1394.     IF ¬ GENERATINGCFM THEN
  1395.         ; parameters: 
  1396.         ;     paramBlock        => A0
  1397.         ; returns: 
  1398.         ;     OSErr             <= D0
  1399.         _PBSetVolSync:    OPWORD    $A015
  1400.     ELSE
  1401.         IMPORT_CFM_FUNCTION    PBSetVolSync
  1402.     ENDIF
  1403.  
  1404. ;
  1405. ; pascal OSErr PBSetVolAsync(ParmBlkPtr paramBlock)
  1406. ;
  1407.     IF ¬ GENERATINGCFM THEN
  1408.         ; parameters: 
  1409.         ;     paramBlock        => A0
  1410.         ; returns: 
  1411.         ;     OSErr             <= D0
  1412.         _PBSetVolAsync:    OPWORD    $A415
  1413.     ELSE
  1414.         IMPORT_CFM_FUNCTION    PBSetVolAsync
  1415.     ENDIF
  1416.  
  1417. ;
  1418. ; pascal OSErr PBFlushVolSync(ParmBlkPtr paramBlock)
  1419. ;
  1420.     IF ¬ GENERATINGCFM THEN
  1421.         ; parameters: 
  1422.         ;     paramBlock        => A0
  1423.         ; returns: 
  1424.         ;     OSErr             <= D0
  1425.         _PBFlushVolSync:    OPWORD    $A013
  1426.     ELSE
  1427.         IMPORT_CFM_FUNCTION    PBFlushVolSync
  1428.     ENDIF
  1429.  
  1430. ;
  1431. ; pascal OSErr PBFlushVolAsync(ParmBlkPtr paramBlock)
  1432. ;
  1433.     IF ¬ GENERATINGCFM THEN
  1434.         ; parameters: 
  1435.         ;     paramBlock        => A0
  1436.         ; returns: 
  1437.         ;     OSErr             <= D0
  1438.         _PBFlushVolAsync:    OPWORD    $A413
  1439.     ELSE
  1440.         IMPORT_CFM_FUNCTION    PBFlushVolAsync
  1441.     ENDIF
  1442.  
  1443. ;
  1444. ; pascal OSErr PBCreateSync(ParmBlkPtr paramBlock)
  1445. ;
  1446.     IF ¬ GENERATINGCFM THEN
  1447.         ; parameters: 
  1448.         ;     paramBlock        => A0
  1449.         ; returns: 
  1450.         ;     OSErr             <= D0
  1451.         _PBCreateSync:    OPWORD    $A008
  1452.     ELSE
  1453.         IMPORT_CFM_FUNCTION    PBCreateSync
  1454.     ENDIF
  1455.  
  1456. ;
  1457. ; pascal OSErr PBCreateAsync(ParmBlkPtr paramBlock)
  1458. ;
  1459.     IF ¬ GENERATINGCFM THEN
  1460.         ; parameters: 
  1461.         ;     paramBlock        => A0
  1462.         ; returns: 
  1463.         ;     OSErr             <= D0
  1464.         _PBCreateAsync:    OPWORD    $A408
  1465.     ELSE
  1466.         IMPORT_CFM_FUNCTION    PBCreateAsync
  1467.     ENDIF
  1468.  
  1469. ;
  1470. ; pascal OSErr PBDeleteSync(ParmBlkPtr paramBlock)
  1471. ;
  1472.     IF ¬ GENERATINGCFM THEN
  1473.         ; parameters: 
  1474.         ;     paramBlock        => A0
  1475.         ; returns: 
  1476.         ;     OSErr             <= D0
  1477.         _PBDeleteSync:    OPWORD    $A009
  1478.     ELSE
  1479.         IMPORT_CFM_FUNCTION    PBDeleteSync
  1480.     ENDIF
  1481.  
  1482. ;
  1483. ; pascal OSErr PBDeleteAsync(ParmBlkPtr paramBlock)
  1484. ;
  1485.     IF ¬ GENERATINGCFM THEN
  1486.         ; parameters: 
  1487.         ;     paramBlock        => A0
  1488.         ; returns: 
  1489.         ;     OSErr             <= D0
  1490.         _PBDeleteAsync:    OPWORD    $A409
  1491.     ELSE
  1492.         IMPORT_CFM_FUNCTION    PBDeleteAsync
  1493.     ENDIF
  1494.  
  1495. ;
  1496. ; pascal OSErr PBOpenDFSync(ParmBlkPtr paramBlock)
  1497. ;
  1498.     IF ¬ GENERATINGCFM THEN
  1499.         ; parameters: 
  1500.         ;     paramBlock        => A0
  1501.         ; returns: 
  1502.         ;     OSErr             <= D0
  1503.         Macro
  1504.         _PBOpenDFSync
  1505.             moveq    #26,d0
  1506.             dc.w     $A060
  1507.         EndM
  1508.     ELSE
  1509.         IMPORT_CFM_FUNCTION    PBOpenDFSync
  1510.     ENDIF
  1511.  
  1512. ;
  1513. ; pascal OSErr PBOpenDFAsync(ParmBlkPtr paramBlock)
  1514. ;
  1515.     IF ¬ GENERATINGCFM THEN
  1516.         ; parameters: 
  1517.         ;     paramBlock        => A0
  1518.         ; returns: 
  1519.         ;     OSErr             <= D0
  1520.         Macro
  1521.         _PBOpenDFAsync
  1522.             moveq    #26,d0
  1523.             dc.w     $A460
  1524.         EndM
  1525.     ELSE
  1526.         IMPORT_CFM_FUNCTION    PBOpenDFAsync
  1527.     ENDIF
  1528.  
  1529. ;
  1530. ; pascal OSErr PBOpenRFSync(ParmBlkPtr paramBlock)
  1531. ;
  1532.     IF ¬ GENERATINGCFM THEN
  1533.         ; parameters: 
  1534.         ;     paramBlock        => A0
  1535.         ; returns: 
  1536.         ;     OSErr             <= D0
  1537.         _PBOpenRFSync:    OPWORD    $A00A
  1538.     ELSE
  1539.         IMPORT_CFM_FUNCTION    PBOpenRFSync
  1540.     ENDIF
  1541.  
  1542. ;
  1543. ; pascal OSErr PBOpenRFAsync(ParmBlkPtr paramBlock)
  1544. ;
  1545.     IF ¬ GENERATINGCFM THEN
  1546.         ; parameters: 
  1547.         ;     paramBlock        => A0
  1548.         ; returns: 
  1549.         ;     OSErr             <= D0
  1550.         _PBOpenRFAsync:    OPWORD    $A40A
  1551.     ELSE
  1552.         IMPORT_CFM_FUNCTION    PBOpenRFAsync
  1553.     ENDIF
  1554.  
  1555. ;
  1556. ; pascal OSErr PBRenameSync(ParmBlkPtr paramBlock)
  1557. ;
  1558.     IF ¬ GENERATINGCFM THEN
  1559.         ; parameters: 
  1560.         ;     paramBlock        => A0
  1561.         ; returns: 
  1562.         ;     OSErr             <= D0
  1563.         _PBRenameSync:    OPWORD    $A00B
  1564.     ELSE
  1565.         IMPORT_CFM_FUNCTION    PBRenameSync
  1566.     ENDIF
  1567.  
  1568. ;
  1569. ; pascal OSErr PBRenameAsync(ParmBlkPtr paramBlock)
  1570. ;
  1571.     IF ¬ GENERATINGCFM THEN
  1572.         ; parameters: 
  1573.         ;     paramBlock        => A0
  1574.         ; returns: 
  1575.         ;     OSErr             <= D0
  1576.         _PBRenameAsync:    OPWORD    $A40B
  1577.     ELSE
  1578.         IMPORT_CFM_FUNCTION    PBRenameAsync
  1579.     ENDIF
  1580.  
  1581. ;
  1582. ; pascal OSErr PBGetFInfoSync(ParmBlkPtr paramBlock)
  1583. ;
  1584.     IF ¬ GENERATINGCFM THEN
  1585.         ; parameters: 
  1586.         ;     paramBlock        => A0
  1587.         ; returns: 
  1588.         ;     OSErr             <= D0
  1589.         _PBGetFInfoSync:    OPWORD    $A00C
  1590.     ELSE
  1591.         IMPORT_CFM_FUNCTION    PBGetFInfoSync
  1592.     ENDIF
  1593.  
  1594. ;
  1595. ; pascal OSErr PBGetFInfoAsync(ParmBlkPtr paramBlock)
  1596. ;
  1597.     IF ¬ GENERATINGCFM THEN
  1598.         ; parameters: 
  1599.         ;     paramBlock        => A0
  1600.         ; returns: 
  1601.         ;     OSErr             <= D0
  1602.         _PBGetFInfoAsync:    OPWORD    $A40C
  1603.     ELSE
  1604.         IMPORT_CFM_FUNCTION    PBGetFInfoAsync
  1605.     ENDIF
  1606.  
  1607. ;
  1608. ; pascal OSErr PBSetFInfoSync(ParmBlkPtr paramBlock)
  1609. ;
  1610.     IF ¬ GENERATINGCFM THEN
  1611.         ; parameters: 
  1612.         ;     paramBlock        => A0
  1613.         ; returns: 
  1614.         ;     OSErr             <= D0
  1615.         _PBSetFInfoSync:    OPWORD    $A00D
  1616.     ELSE
  1617.         IMPORT_CFM_FUNCTION    PBSetFInfoSync
  1618.     ENDIF
  1619.  
  1620. ;
  1621. ; pascal OSErr PBSetFInfoAsync(ParmBlkPtr paramBlock)
  1622. ;
  1623.     IF ¬ GENERATINGCFM THEN
  1624.         ; parameters: 
  1625.         ;     paramBlock        => A0
  1626.         ; returns: 
  1627.         ;     OSErr             <= D0
  1628.         _PBSetFInfoAsync:    OPWORD    $A40D
  1629.     ELSE
  1630.         IMPORT_CFM_FUNCTION    PBSetFInfoAsync
  1631.     ENDIF
  1632.  
  1633. ;
  1634. ; pascal OSErr PBSetFLockSync(ParmBlkPtr paramBlock)
  1635. ;
  1636.     IF ¬ GENERATINGCFM THEN
  1637.         ; parameters: 
  1638.         ;     paramBlock        => A0
  1639.         ; returns: 
  1640.         ;     OSErr             <= D0
  1641.         _PBSetFLockSync:    OPWORD    $A041
  1642.     ELSE
  1643.         IMPORT_CFM_FUNCTION    PBSetFLockSync
  1644.     ENDIF
  1645.  
  1646. ;
  1647. ; pascal OSErr PBSetFLockAsync(ParmBlkPtr paramBlock)
  1648. ;
  1649.     IF ¬ GENERATINGCFM THEN
  1650.         ; parameters: 
  1651.         ;     paramBlock        => A0
  1652.         ; returns: 
  1653.         ;     OSErr             <= D0
  1654.         _PBSetFLockAsync:    OPWORD    $A441
  1655.     ELSE
  1656.         IMPORT_CFM_FUNCTION    PBSetFLockAsync
  1657.     ENDIF
  1658.  
  1659. ;
  1660. ; pascal OSErr PBRstFLockSync(ParmBlkPtr paramBlock)
  1661. ;
  1662.     IF ¬ GENERATINGCFM THEN
  1663.         ; parameters: 
  1664.         ;     paramBlock        => A0
  1665.         ; returns: 
  1666.         ;     OSErr             <= D0
  1667.         _PBRstFLockSync:    OPWORD    $A042
  1668.     ELSE
  1669.         IMPORT_CFM_FUNCTION    PBRstFLockSync
  1670.     ENDIF
  1671.  
  1672. ;
  1673. ; pascal OSErr PBRstFLockAsync(ParmBlkPtr paramBlock)
  1674. ;
  1675.     IF ¬ GENERATINGCFM THEN
  1676.         ; parameters: 
  1677.         ;     paramBlock        => A0
  1678.         ; returns: 
  1679.         ;     OSErr             <= D0
  1680.         _PBRstFLockAsync:    OPWORD    $A442
  1681.     ELSE
  1682.         IMPORT_CFM_FUNCTION    PBRstFLockAsync
  1683.     ENDIF
  1684.  
  1685. ;
  1686. ; pascal OSErr PBSetFVersSync(ParmBlkPtr paramBlock)
  1687. ;
  1688.     IF ¬ GENERATINGCFM THEN
  1689.         ; parameters: 
  1690.         ;     paramBlock        => A0
  1691.         ; returns: 
  1692.         ;     OSErr             <= D0
  1693.         _PBSetFVersSync:    OPWORD    $A043
  1694.     ELSE
  1695.         IMPORT_CFM_FUNCTION    PBSetFVersSync
  1696.     ENDIF
  1697.  
  1698. ;
  1699. ; pascal OSErr PBSetFVersAsync(ParmBlkPtr paramBlock)
  1700. ;
  1701.     IF ¬ GENERATINGCFM THEN
  1702.         ; parameters: 
  1703.         ;     paramBlock        => A0
  1704.         ; returns: 
  1705.         ;     OSErr             <= D0
  1706.         _PBSetFVersAsync:    OPWORD    $A443
  1707.     ELSE
  1708.         IMPORT_CFM_FUNCTION    PBSetFVersAsync
  1709.     ENDIF
  1710.  
  1711. ;
  1712. ; pascal OSErr PBAllocateSync(ParmBlkPtr paramBlock)
  1713. ;
  1714.     IF ¬ GENERATINGCFM THEN
  1715.         ; parameters: 
  1716.         ;     paramBlock        => A0
  1717.         ; returns: 
  1718.         ;     OSErr             <= D0
  1719.         _PBAllocateSync:    OPWORD    $A010
  1720.     ELSE
  1721.         IMPORT_CFM_FUNCTION    PBAllocateSync
  1722.     ENDIF
  1723.  
  1724. ;
  1725. ; pascal OSErr PBAllocateAsync(ParmBlkPtr paramBlock)
  1726. ;
  1727.     IF ¬ GENERATINGCFM THEN
  1728.         ; parameters: 
  1729.         ;     paramBlock        => A0
  1730.         ; returns: 
  1731.         ;     OSErr             <= D0
  1732.         _PBAllocateAsync:    OPWORD    $A410
  1733.     ELSE
  1734.         IMPORT_CFM_FUNCTION    PBAllocateAsync
  1735.     ENDIF
  1736.  
  1737. ;
  1738. ; pascal OSErr PBGetEOFSync(ParmBlkPtr paramBlock)
  1739. ;
  1740.     IF ¬ GENERATINGCFM THEN
  1741.         ; parameters: 
  1742.         ;     paramBlock        => A0
  1743.         ; returns: 
  1744.         ;     OSErr             <= D0
  1745.         _PBGetEOFSync:    OPWORD    $A011
  1746.     ELSE
  1747.         IMPORT_CFM_FUNCTION    PBGetEOFSync
  1748.     ENDIF
  1749.  
  1750. ;
  1751. ; pascal OSErr PBGetEOFAsync(ParmBlkPtr paramBlock)
  1752. ;
  1753.     IF ¬ GENERATINGCFM THEN
  1754.         ; parameters: 
  1755.         ;     paramBlock        => A0
  1756.         ; returns: 
  1757.         ;     OSErr             <= D0
  1758.         _PBGetEOFAsync:    OPWORD    $A411
  1759.     ELSE
  1760.         IMPORT_CFM_FUNCTION    PBGetEOFAsync
  1761.     ENDIF
  1762.  
  1763. ;
  1764. ; pascal OSErr PBSetEOFSync(ParmBlkPtr paramBlock)
  1765. ;
  1766.     IF ¬ GENERATINGCFM THEN
  1767.         ; parameters: 
  1768.         ;     paramBlock        => A0
  1769.         ; returns: 
  1770.         ;     OSErr             <= D0
  1771.         _PBSetEOFSync:    OPWORD    $A012
  1772.     ELSE
  1773.         IMPORT_CFM_FUNCTION    PBSetEOFSync
  1774.     ENDIF
  1775.  
  1776. ;
  1777. ; pascal OSErr PBSetEOFAsync(ParmBlkPtr paramBlock)
  1778. ;
  1779.     IF ¬ GENERATINGCFM THEN
  1780.         ; parameters: 
  1781.         ;     paramBlock        => A0
  1782.         ; returns: 
  1783.         ;     OSErr             <= D0
  1784.         _PBSetEOFAsync:    OPWORD    $A412
  1785.     ELSE
  1786.         IMPORT_CFM_FUNCTION    PBSetEOFAsync
  1787.     ENDIF
  1788.  
  1789. ;
  1790. ; pascal OSErr PBGetFPosSync(ParmBlkPtr paramBlock)
  1791. ;
  1792.     IF ¬ GENERATINGCFM THEN
  1793.         ; parameters: 
  1794.         ;     paramBlock        => A0
  1795.         ; returns: 
  1796.         ;     OSErr             <= D0
  1797.         _PBGetFPosSync:    OPWORD    $A018
  1798.     ELSE
  1799.         IMPORT_CFM_FUNCTION    PBGetFPosSync
  1800.     ENDIF
  1801.  
  1802. ;
  1803. ; pascal OSErr PBGetFPosAsync(ParmBlkPtr paramBlock)
  1804. ;
  1805.     IF ¬ GENERATINGCFM THEN
  1806.         ; parameters: 
  1807.         ;     paramBlock        => A0
  1808.         ; returns: 
  1809.         ;     OSErr             <= D0
  1810.         _PBGetFPosAsync:    OPWORD    $A418
  1811.     ELSE
  1812.         IMPORT_CFM_FUNCTION    PBGetFPosAsync
  1813.     ENDIF
  1814.  
  1815. ;
  1816. ; pascal OSErr PBSetFPosSync(ParmBlkPtr paramBlock)
  1817. ;
  1818.     IF ¬ GENERATINGCFM THEN
  1819.         ; parameters: 
  1820.         ;     paramBlock        => A0
  1821.         ; returns: 
  1822.         ;     OSErr             <= D0
  1823.         _PBSetFPosSync:    OPWORD    $A044
  1824.     ELSE
  1825.         IMPORT_CFM_FUNCTION    PBSetFPosSync
  1826.     ENDIF
  1827.  
  1828. ;
  1829. ; pascal OSErr PBSetFPosAsync(ParmBlkPtr paramBlock)
  1830. ;
  1831.     IF ¬ GENERATINGCFM THEN
  1832.         ; parameters: 
  1833.         ;     paramBlock        => A0
  1834.         ; returns: 
  1835.         ;     OSErr             <= D0
  1836.         _PBSetFPosAsync:    OPWORD    $A444
  1837.     ELSE
  1838.         IMPORT_CFM_FUNCTION    PBSetFPosAsync
  1839.     ENDIF
  1840.  
  1841. ;
  1842. ; pascal OSErr PBFlushFileSync(ParmBlkPtr paramBlock)
  1843. ;
  1844.     IF ¬ GENERATINGCFM THEN
  1845.         ; parameters: 
  1846.         ;     paramBlock        => A0
  1847.         ; returns: 
  1848.         ;     OSErr             <= D0
  1849.         _PBFlushFileSync:    OPWORD    $A045
  1850.     ELSE
  1851.         IMPORT_CFM_FUNCTION    PBFlushFileSync
  1852.     ENDIF
  1853.  
  1854. ;
  1855. ; pascal OSErr PBFlushFileAsync(ParmBlkPtr paramBlock)
  1856. ;
  1857.     IF ¬ GENERATINGCFM THEN
  1858.         ; parameters: 
  1859.         ;     paramBlock        => A0
  1860.         ; returns: 
  1861.         ;     OSErr             <= D0
  1862.         _PBFlushFileAsync:    OPWORD    $A445
  1863.     ELSE
  1864.         IMPORT_CFM_FUNCTION    PBFlushFileAsync
  1865.     ENDIF
  1866.  
  1867. ;
  1868. ; pascal OSErr PBMountVol(ParmBlkPtr paramBlock)
  1869. ;
  1870.     IF ¬ GENERATINGCFM THEN
  1871.         ; parameters: 
  1872.         ;     paramBlock        => A0
  1873.         ; returns: 
  1874.         ;     OSErr             <= D0
  1875.         _PBMountVol:    OPWORD    $A00F
  1876.     ELSE
  1877.         IMPORT_CFM_FUNCTION    PBMountVol
  1878.     ENDIF
  1879.  
  1880. ;
  1881. ; pascal OSErr PBUnmountVol(ParmBlkPtr paramBlock)
  1882. ;
  1883.     IF ¬ GENERATINGCFM THEN
  1884.         ; parameters: 
  1885.         ;     paramBlock        => A0
  1886.         ; returns: 
  1887.         ;     OSErr             <= D0
  1888.         _PBUnmountVol:    OPWORD    $A00E
  1889.     ELSE
  1890.         IMPORT_CFM_FUNCTION    PBUnmountVol
  1891.     ENDIF
  1892.  
  1893. ;
  1894. ; pascal OSErr PBEject(ParmBlkPtr paramBlock)
  1895. ;
  1896.     IF ¬ GENERATINGCFM THEN
  1897.         ; parameters: 
  1898.         ;     paramBlock        => A0
  1899.         ; returns: 
  1900.         ;     OSErr             <= D0
  1901.         _PBEject:    OPWORD    $A017
  1902.     ELSE
  1903.         IMPORT_CFM_FUNCTION    PBEject
  1904.     ENDIF
  1905.  
  1906. ;
  1907. ; pascal OSErr PBOffLine(ParmBlkPtr paramBlock)
  1908. ;
  1909.     IF ¬ GENERATINGCFM THEN
  1910.         ; parameters: 
  1911.         ;     paramBlock        => A0
  1912.         ; returns: 
  1913.         ;     OSErr             <= D0
  1914.         _PBOffLine:    OPWORD    $A035
  1915.     ELSE
  1916.         IMPORT_CFM_FUNCTION    PBOffLine
  1917.     ENDIF
  1918.  
  1919. ;
  1920. ; pascal OSErr PBCatSearchSync(CSParamPtr paramBlock)
  1921. ;
  1922.     IF ¬ GENERATINGCFM THEN
  1923.         ; parameters: 
  1924.         ;     paramBlock        => A0
  1925.         ; returns: 
  1926.         ;     OSErr             <= D0
  1927.         Macro
  1928.         _PBCatSearchSync
  1929.             moveq    #24,d0
  1930.             dc.w     $A260
  1931.         EndM
  1932.     ELSE
  1933.         IMPORT_CFM_FUNCTION    PBCatSearchSync
  1934.     ENDIF
  1935.  
  1936. ;
  1937. ; pascal OSErr PBCatSearchAsync(CSParamPtr paramBlock)
  1938. ;
  1939.     IF ¬ GENERATINGCFM THEN
  1940.         ; parameters: 
  1941.         ;     paramBlock        => A0
  1942.         ; returns: 
  1943.         ;     OSErr             <= D0
  1944.         Macro
  1945.         _PBCatSearchAsync
  1946.             moveq    #24,d0
  1947.             dc.w     $A660
  1948.         EndM
  1949.     ELSE
  1950.         IMPORT_CFM_FUNCTION    PBCatSearchAsync
  1951.     ENDIF
  1952.  
  1953. ;
  1954. ; pascal OSErr SetVol(ConstStr63Param volName, short vRefNum)
  1955. ;
  1956.     IF GENERATINGCFM THEN
  1957.         IMPORT_CFM_FUNCTION    SetVol
  1958.     ENDIF
  1959.  
  1960. ;
  1961. ; pascal OSErr UnmountVol(ConstStr63Param volName, short vRefNum)
  1962. ;
  1963.     IF GENERATINGCFM THEN
  1964.         IMPORT_CFM_FUNCTION    UnmountVol
  1965.     ENDIF
  1966.  
  1967. ;
  1968. ; pascal OSErr Eject(ConstStr63Param volName, short vRefNum)
  1969. ;
  1970.     IF GENERATINGCFM THEN
  1971.         IMPORT_CFM_FUNCTION    Eject
  1972.     ENDIF
  1973.  
  1974. ;
  1975. ; pascal OSErr FlushVol(ConstStr63Param volName, short vRefNum)
  1976. ;
  1977.     IF GENERATINGCFM THEN
  1978.         IMPORT_CFM_FUNCTION    FlushVol
  1979.     ENDIF
  1980.  
  1981. ;
  1982. ; pascal OSErr HSetVol(ConstStr63Param volName, short vRefNum, long dirID)
  1983. ;
  1984.     IF GENERATINGCFM THEN
  1985.         IMPORT_CFM_FUNCTION    HSetVol
  1986.     ENDIF
  1987.  
  1988.     IF OLDROUTINELOCATIONS  THEN
  1989. ;
  1990. ; pascal void AddDrive(short drvrRefNum, short drvNum, DrvQElPtr qEl)
  1991. ;
  1992.     IF GENERATINGCFM THEN
  1993.         IMPORT_CFM_FUNCTION    AddDrive
  1994.     ENDIF
  1995.  
  1996.     ENDIF
  1997. ;
  1998. ; pascal OSErr FSOpen(ConstStr255Param fileName, short vRefNum, short *refNum)
  1999. ;
  2000.     IF GENERATINGCFM THEN
  2001.         IMPORT_CFM_FUNCTION    FSOpen
  2002.     ENDIF
  2003.  
  2004. ;
  2005. ; pascal OSErr OpenDF(ConstStr255Param fileName, short vRefNum, short *refNum)
  2006. ;
  2007.     IF GENERATINGCFM THEN
  2008.         IMPORT_CFM_FUNCTION    OpenDF
  2009.     ENDIF
  2010.  
  2011. ;
  2012. ; pascal OSErr FSClose(short refNum)
  2013. ;
  2014.     IF GENERATINGCFM THEN
  2015.         IMPORT_CFM_FUNCTION    FSClose
  2016.     ENDIF
  2017.  
  2018. ;
  2019. ; pascal OSErr FSRead(short refNum, long *count, void *buffPtr)
  2020. ;
  2021.     IF GENERATINGCFM THEN
  2022.         IMPORT_CFM_FUNCTION    FSRead
  2023.     ENDIF
  2024.  
  2025. ;
  2026. ; pascal OSErr FSWrite(short refNum, long *count, const void *buffPtr)
  2027. ;
  2028.     IF GENERATINGCFM THEN
  2029.         IMPORT_CFM_FUNCTION    FSWrite
  2030.     ENDIF
  2031.  
  2032. ;
  2033. ; pascal OSErr GetVInfo(short drvNum, StringPtr volName, short *vRefNum, long *freeBytes)
  2034. ;
  2035.     IF GENERATINGCFM THEN
  2036.         IMPORT_CFM_FUNCTION    GetVInfo
  2037.     ENDIF
  2038.  
  2039. ;
  2040. ; pascal OSErr GetFInfo(ConstStr255Param fileName, short vRefNum, FInfo *fndrInfo)
  2041. ;
  2042.     IF GENERATINGCFM THEN
  2043.         IMPORT_CFM_FUNCTION    GetFInfo
  2044.     ENDIF
  2045.  
  2046. ;
  2047. ; pascal OSErr GetVol(StringPtr volName, short *vRefNum)
  2048. ;
  2049.     IF GENERATINGCFM THEN
  2050.         IMPORT_CFM_FUNCTION    GetVol
  2051.     ENDIF
  2052.  
  2053. ;
  2054. ; pascal OSErr Create(ConstStr255Param fileName, short vRefNum, OSType creator, OSType fileType)
  2055. ;
  2056.     IF GENERATINGCFM THEN
  2057.         IMPORT_CFM_FUNCTION    Create
  2058.     ENDIF
  2059.  
  2060. ;
  2061. ; pascal OSErr FSDelete(ConstStr255Param fileName, short vRefNum)
  2062. ;
  2063.     IF GENERATINGCFM THEN
  2064.         IMPORT_CFM_FUNCTION    FSDelete
  2065.     ENDIF
  2066.  
  2067. ;
  2068. ; pascal OSErr OpenRF(ConstStr255Param fileName, short vRefNum, short *refNum)
  2069. ;
  2070.     IF GENERATINGCFM THEN
  2071.         IMPORT_CFM_FUNCTION    OpenRF
  2072.     ENDIF
  2073.  
  2074. ;
  2075. ; pascal OSErr Rename(ConstStr255Param oldName, short vRefNum, ConstStr255Param newName)
  2076. ;
  2077.     IF GENERATINGCFM THEN
  2078.         IMPORT_CFM_FUNCTION    Rename
  2079.     ENDIF
  2080.  
  2081. ;
  2082. ; pascal OSErr SetFInfo(ConstStr255Param fileName, short vRefNum, const FInfo *fndrInfo)
  2083. ;
  2084.     IF GENERATINGCFM THEN
  2085.         IMPORT_CFM_FUNCTION    SetFInfo
  2086.     ENDIF
  2087.  
  2088. ;
  2089. ; pascal OSErr SetFLock(ConstStr255Param fileName, short vRefNum)
  2090. ;
  2091.     IF GENERATINGCFM THEN
  2092.         IMPORT_CFM_FUNCTION    SetFLock
  2093.     ENDIF
  2094.  
  2095. ;
  2096. ; pascal OSErr RstFLock(ConstStr255Param fileName, short vRefNum)
  2097. ;
  2098.     IF GENERATINGCFM THEN
  2099.         IMPORT_CFM_FUNCTION    RstFLock
  2100.     ENDIF
  2101.  
  2102. ;
  2103. ; pascal OSErr Allocate(short refNum, long *count)
  2104. ;
  2105.     IF GENERATINGCFM THEN
  2106.         IMPORT_CFM_FUNCTION    Allocate
  2107.     ENDIF
  2108.  
  2109. ;
  2110. ; pascal OSErr GetEOF(short refNum, long *logEOF)
  2111. ;
  2112.     IF GENERATINGCFM THEN
  2113.         IMPORT_CFM_FUNCTION    GetEOF
  2114.     ENDIF
  2115.  
  2116. ;
  2117. ; pascal OSErr SetEOF(short refNum, long logEOF)
  2118. ;
  2119.     IF GENERATINGCFM THEN
  2120.         IMPORT_CFM_FUNCTION    SetEOF
  2121.     ENDIF
  2122.  
  2123. ;
  2124. ; pascal OSErr GetFPos(short refNum, long *filePos)
  2125. ;
  2126.     IF GENERATINGCFM THEN
  2127.         IMPORT_CFM_FUNCTION    GetFPos
  2128.     ENDIF
  2129.  
  2130. ;
  2131. ; pascal OSErr SetFPos(short refNum, short posMode, long posOff)
  2132. ;
  2133.     IF GENERATINGCFM THEN
  2134.         IMPORT_CFM_FUNCTION    SetFPos
  2135.     ENDIF
  2136.  
  2137. ;
  2138. ; pascal OSErr GetVRefNum(short fileRefNum, short *vRefNum)
  2139. ;
  2140.     IF GENERATINGCFM THEN
  2141.         IMPORT_CFM_FUNCTION    GetVRefNum
  2142.     ENDIF
  2143.  
  2144. ;
  2145. ; pascal OSErr PBOpenWDSync(WDPBPtr paramBlock)
  2146. ;
  2147.     IF ¬ GENERATINGCFM THEN
  2148.         ; parameters: 
  2149.         ;     paramBlock        => A0
  2150.         ; returns: 
  2151.         ;     OSErr             <= D0
  2152.         Macro
  2153.         _PBOpenWDSync
  2154.             moveq    #1,d0
  2155.             dc.w     $A260
  2156.         EndM
  2157.     ELSE
  2158.         IMPORT_CFM_FUNCTION    PBOpenWDSync
  2159.     ENDIF
  2160.  
  2161. ;
  2162. ; pascal OSErr PBOpenWDAsync(WDPBPtr paramBlock)
  2163. ;
  2164.     IF ¬ GENERATINGCFM THEN
  2165.         ; parameters: 
  2166.         ;     paramBlock        => A0
  2167.         ; returns: 
  2168.         ;     OSErr             <= D0
  2169.         Macro
  2170.         _PBOpenWDAsync
  2171.             moveq    #1,d0
  2172.             dc.w     $A660
  2173.         EndM
  2174.     ELSE
  2175.         IMPORT_CFM_FUNCTION    PBOpenWDAsync
  2176.     ENDIF
  2177.  
  2178. ;
  2179. ; pascal OSErr PBCloseWDSync(WDPBPtr paramBlock)
  2180. ;
  2181.     IF ¬ GENERATINGCFM THEN
  2182.         ; parameters: 
  2183.         ;     paramBlock        => A0
  2184.         ; returns: 
  2185.         ;     OSErr             <= D0
  2186.         Macro
  2187.         _PBCloseWDSync
  2188.             moveq    #2,d0
  2189.             dc.w     $A260
  2190.         EndM
  2191.     ELSE
  2192.         IMPORT_CFM_FUNCTION    PBCloseWDSync
  2193.     ENDIF
  2194.  
  2195. ;
  2196. ; pascal OSErr PBCloseWDAsync(WDPBPtr paramBlock)
  2197. ;
  2198.     IF ¬ GENERATINGCFM THEN
  2199.         ; parameters: 
  2200.         ;     paramBlock        => A0
  2201.         ; returns: 
  2202.         ;     OSErr             <= D0
  2203.         Macro
  2204.         _PBCloseWDAsync
  2205.             moveq    #2,d0
  2206.             dc.w     $A660
  2207.         EndM
  2208.     ELSE
  2209.         IMPORT_CFM_FUNCTION    PBCloseWDAsync
  2210.     ENDIF
  2211.  
  2212. ;
  2213. ; pascal OSErr PBHSetVolSync(WDPBPtr paramBlock)
  2214. ;
  2215.     IF ¬ GENERATINGCFM THEN
  2216.         ; parameters: 
  2217.         ;     paramBlock        => A0
  2218.         ; returns: 
  2219.         ;     OSErr             <= D0
  2220.         _PBHSetVolSync:    OPWORD    $A215
  2221.     ELSE
  2222.         IMPORT_CFM_FUNCTION    PBHSetVolSync
  2223.     ENDIF
  2224.  
  2225. ;
  2226. ; pascal OSErr PBHSetVolAsync(WDPBPtr paramBlock)
  2227. ;
  2228.     IF ¬ GENERATINGCFM THEN
  2229.         ; parameters: 
  2230.         ;     paramBlock        => A0
  2231.         ; returns: 
  2232.         ;     OSErr             <= D0
  2233.         _PBHSetVolAsync:    OPWORD    $A615
  2234.     ELSE
  2235.         IMPORT_CFM_FUNCTION    PBHSetVolAsync
  2236.     ENDIF
  2237.  
  2238. ;
  2239. ; pascal OSErr PBHGetVolSync(WDPBPtr paramBlock)
  2240. ;
  2241.     IF ¬ GENERATINGCFM THEN
  2242.         ; parameters: 
  2243.         ;     paramBlock        => A0
  2244.         ; returns: 
  2245.         ;     OSErr             <= D0
  2246.         _PBHGetVolSync:    OPWORD    $A214
  2247.     ELSE
  2248.         IMPORT_CFM_FUNCTION    PBHGetVolSync
  2249.     ENDIF
  2250.  
  2251. ;
  2252. ; pascal OSErr PBHGetVolAsync(WDPBPtr paramBlock)
  2253. ;
  2254.     IF ¬ GENERATINGCFM THEN
  2255.         ; parameters: 
  2256.         ;     paramBlock        => A0
  2257.         ; returns: 
  2258.         ;     OSErr             <= D0
  2259.         _PBHGetVolAsync:    OPWORD    $A614
  2260.     ELSE
  2261.         IMPORT_CFM_FUNCTION    PBHGetVolAsync
  2262.     ENDIF
  2263.  
  2264. ;
  2265. ; pascal OSErr PBCatMoveSync(CMovePBPtr paramBlock)
  2266. ;
  2267.     IF ¬ GENERATINGCFM THEN
  2268.         ; parameters: 
  2269.         ;     paramBlock        => A0
  2270.         ; returns: 
  2271.         ;     OSErr             <= D0
  2272.         Macro
  2273.         _PBCatMoveSync
  2274.             moveq    #5,d0
  2275.             dc.w     $A260
  2276.         EndM
  2277.     ELSE
  2278.         IMPORT_CFM_FUNCTION    PBCatMoveSync
  2279.     ENDIF
  2280.  
  2281. ;
  2282. ; pascal OSErr PBCatMoveAsync(CMovePBPtr paramBlock)
  2283. ;
  2284.     IF ¬ GENERATINGCFM THEN
  2285.         ; parameters: 
  2286.         ;     paramBlock        => A0
  2287.         ; returns: 
  2288.         ;     OSErr             <= D0
  2289.         Macro
  2290.         _PBCatMoveAsync
  2291.             moveq    #5,d0
  2292.             dc.w     $A660
  2293.         EndM
  2294.     ELSE
  2295.         IMPORT_CFM_FUNCTION    PBCatMoveAsync
  2296.     ENDIF
  2297.  
  2298. ;
  2299. ; pascal OSErr PBDirCreateSync(HParmBlkPtr paramBlock)
  2300. ;
  2301.     IF ¬ GENERATINGCFM THEN
  2302.         ; parameters: 
  2303.         ;     paramBlock        => A0
  2304.         ; returns: 
  2305.         ;     OSErr             <= D0
  2306.         Macro
  2307.         _PBDirCreateSync
  2308.             moveq    #6,d0
  2309.             dc.w     $A260
  2310.         EndM
  2311.     ELSE
  2312.         IMPORT_CFM_FUNCTION    PBDirCreateSync
  2313.     ENDIF
  2314.  
  2315. ;
  2316. ; pascal OSErr PBDirCreateAsync(HParmBlkPtr paramBlock)
  2317. ;
  2318.     IF ¬ GENERATINGCFM THEN
  2319.         ; parameters: 
  2320.         ;     paramBlock        => A0
  2321.         ; returns: 
  2322.         ;     OSErr             <= D0
  2323.         Macro
  2324.         _PBDirCreateAsync
  2325.             moveq    #6,d0
  2326.             dc.w     $A660
  2327.         EndM
  2328.     ELSE
  2329.         IMPORT_CFM_FUNCTION    PBDirCreateAsync
  2330.     ENDIF
  2331.  
  2332. ;
  2333. ; pascal OSErr PBGetWDInfoSync(WDPBPtr paramBlock)
  2334. ;
  2335.     IF ¬ GENERATINGCFM THEN
  2336.         ; parameters: 
  2337.         ;     paramBlock        => A0
  2338.         ; returns: 
  2339.         ;     OSErr             <= D0
  2340.         Macro
  2341.         _PBGetWDInfoSync
  2342.             moveq    #7,d0
  2343.             dc.w     $A260
  2344.         EndM
  2345.     ELSE
  2346.         IMPORT_CFM_FUNCTION    PBGetWDInfoSync
  2347.     ENDIF
  2348.  
  2349. ;
  2350. ; pascal OSErr PBGetWDInfoAsync(WDPBPtr paramBlock)
  2351. ;
  2352.     IF ¬ GENERATINGCFM THEN
  2353.         ; parameters: 
  2354.         ;     paramBlock        => A0
  2355.         ; returns: 
  2356.         ;     OSErr             <= D0
  2357.         Macro
  2358.         _PBGetWDInfoAsync
  2359.             moveq    #7,d0
  2360.             dc.w     $A660
  2361.         EndM
  2362.     ELSE
  2363.         IMPORT_CFM_FUNCTION    PBGetWDInfoAsync
  2364.     ENDIF
  2365.  
  2366. ;
  2367. ; pascal OSErr PBGetFCBInfoSync(FCBPBPtr paramBlock)
  2368. ;
  2369.     IF ¬ GENERATINGCFM THEN
  2370.         ; parameters: 
  2371.         ;     paramBlock        => A0
  2372.         ; returns: 
  2373.         ;     OSErr             <= D0
  2374.         Macro
  2375.         _PBGetFCBInfoSync
  2376.             moveq    #8,d0
  2377.             dc.w     $A260
  2378.         EndM
  2379.     ELSE
  2380.         IMPORT_CFM_FUNCTION    PBGetFCBInfoSync
  2381.     ENDIF
  2382.  
  2383. ;
  2384. ; pascal OSErr PBGetFCBInfoAsync(FCBPBPtr paramBlock)
  2385. ;
  2386.     IF ¬ GENERATINGCFM THEN
  2387.         ; parameters: 
  2388.         ;     paramBlock        => A0
  2389.         ; returns: 
  2390.         ;     OSErr             <= D0
  2391.         Macro
  2392.         _PBGetFCBInfoAsync
  2393.             moveq    #8,d0
  2394.             dc.w     $A660
  2395.         EndM
  2396.     ELSE
  2397.         IMPORT_CFM_FUNCTION    PBGetFCBInfoAsync
  2398.     ENDIF
  2399.  
  2400. ;
  2401. ; pascal OSErr PBGetCatInfoSync(CInfoPBPtr paramBlock)
  2402. ;
  2403.     IF ¬ GENERATINGCFM THEN
  2404.         ; parameters: 
  2405.         ;     paramBlock        => A0
  2406.         ; returns: 
  2407.         ;     OSErr             <= D0
  2408.         Macro
  2409.         _PBGetCatInfoSync
  2410.             moveq    #9,d0
  2411.             dc.w     $A260
  2412.         EndM
  2413.     ELSE
  2414.         IMPORT_CFM_FUNCTION    PBGetCatInfoSync
  2415.     ENDIF
  2416.  
  2417. ;
  2418. ; pascal OSErr PBGetCatInfoAsync(CInfoPBPtr paramBlock)
  2419. ;
  2420.     IF ¬ GENERATINGCFM THEN
  2421.         ; parameters: 
  2422.         ;     paramBlock        => A0
  2423.         ; returns: 
  2424.         ;     OSErr             <= D0
  2425.         Macro
  2426.         _PBGetCatInfoAsync
  2427.             moveq    #9,d0
  2428.             dc.w     $A660
  2429.         EndM
  2430.     ELSE
  2431.         IMPORT_CFM_FUNCTION    PBGetCatInfoAsync
  2432.     ENDIF
  2433.  
  2434. ;
  2435. ; pascal OSErr PBSetCatInfoSync(CInfoPBPtr paramBlock)
  2436. ;
  2437.     IF ¬ GENERATINGCFM THEN
  2438.         ; parameters: 
  2439.         ;     paramBlock        => A0
  2440.         ; returns: 
  2441.         ;     OSErr             <= D0
  2442.         Macro
  2443.         _PBSetCatInfoSync
  2444.             moveq    #10,d0
  2445.             dc.w     $A260
  2446.         EndM
  2447.     ELSE
  2448.         IMPORT_CFM_FUNCTION    PBSetCatInfoSync
  2449.     ENDIF
  2450.  
  2451. ;
  2452. ; pascal OSErr PBSetCatInfoAsync(CInfoPBPtr paramBlock)
  2453. ;
  2454.     IF ¬ GENERATINGCFM THEN
  2455.         ; parameters: 
  2456.         ;     paramBlock        => A0
  2457.         ; returns: 
  2458.         ;     OSErr             <= D0
  2459.         Macro
  2460.         _PBSetCatInfoAsync
  2461.             moveq    #10,d0
  2462.             dc.w     $A660
  2463.         EndM
  2464.     ELSE
  2465.         IMPORT_CFM_FUNCTION    PBSetCatInfoAsync
  2466.     ENDIF
  2467.  
  2468. ;
  2469. ; pascal OSErr PBAllocContigSync(ParmBlkPtr paramBlock)
  2470. ;
  2471.     IF ¬ GENERATINGCFM THEN
  2472.         ; parameters: 
  2473.         ;     paramBlock        => A0
  2474.         ; returns: 
  2475.         ;     OSErr             <= D0
  2476.         _PBAllocContigSync:    OPWORD    $A210
  2477.     ELSE
  2478.         IMPORT_CFM_FUNCTION    PBAllocContigSync
  2479.     ENDIF
  2480.  
  2481. ;
  2482. ; pascal OSErr PBAllocContigAsync(ParmBlkPtr paramBlock)
  2483. ;
  2484.     IF ¬ GENERATINGCFM THEN
  2485.         ; parameters: 
  2486.         ;     paramBlock        => A0
  2487.         ; returns: 
  2488.         ;     OSErr             <= D0
  2489.         _PBAllocContigAsync:    OPWORD    $A610
  2490.     ELSE
  2491.         IMPORT_CFM_FUNCTION    PBAllocContigAsync
  2492.     ENDIF
  2493.  
  2494. ;
  2495. ; pascal OSErr PBLockRangeSync(ParmBlkPtr paramBlock)
  2496. ;
  2497.     IF ¬ GENERATINGCFM THEN
  2498.         ; parameters: 
  2499.         ;     paramBlock        => A0
  2500.         ; returns: 
  2501.         ;     OSErr             <= D0
  2502.         Macro
  2503.         _PBLockRangeSync
  2504.             moveq    #16,d0
  2505.             dc.w     $A260
  2506.         EndM
  2507.     ELSE
  2508.         IMPORT_CFM_FUNCTION    PBLockRangeSync
  2509.     ENDIF
  2510.  
  2511. ;
  2512. ; pascal OSErr PBLockRangeAsync(ParmBlkPtr paramBlock)
  2513. ;
  2514.     IF ¬ GENERATINGCFM THEN
  2515.         ; parameters: 
  2516.         ;     paramBlock        => A0
  2517.         ; returns: 
  2518.         ;     OSErr             <= D0
  2519.         Macro
  2520.         _PBLockRangeAsync
  2521.             moveq    #16,d0
  2522.             dc.w     $A660
  2523.         EndM
  2524.     ELSE
  2525.         IMPORT_CFM_FUNCTION    PBLockRangeAsync
  2526.     ENDIF
  2527.  
  2528. ;
  2529. ; pascal OSErr PBUnlockRangeSync(ParmBlkPtr paramBlock)
  2530. ;
  2531.     IF ¬ GENERATINGCFM THEN
  2532.         ; parameters: 
  2533.         ;     paramBlock        => A0
  2534.         ; returns: 
  2535.         ;     OSErr             <= D0
  2536.         Macro
  2537.         _PBUnlockRangeSync
  2538.             moveq    #17,d0
  2539.             dc.w     $A260
  2540.         EndM
  2541.     ELSE
  2542.         IMPORT_CFM_FUNCTION    PBUnlockRangeSync
  2543.     ENDIF
  2544.  
  2545. ;
  2546. ; pascal OSErr PBUnlockRangeAsync(ParmBlkPtr paramBlock)
  2547. ;
  2548.     IF ¬ GENERATINGCFM THEN
  2549.         ; parameters: 
  2550.         ;     paramBlock        => A0
  2551.         ; returns: 
  2552.         ;     OSErr             <= D0
  2553.         Macro
  2554.         _PBUnlockRangeAsync
  2555.             moveq    #17,d0
  2556.             dc.w     $A660
  2557.         EndM
  2558.     ELSE
  2559.         IMPORT_CFM_FUNCTION    PBUnlockRangeAsync
  2560.     ENDIF
  2561.  
  2562. ;
  2563. ; pascal OSErr PBSetVInfoSync(HParmBlkPtr paramBlock)
  2564. ;
  2565.     IF ¬ GENERATINGCFM THEN
  2566.         ; parameters: 
  2567.         ;     paramBlock        => A0
  2568.         ; returns: 
  2569.         ;     OSErr             <= D0
  2570.         Macro
  2571.         _PBSetVInfoSync
  2572.             moveq    #11,d0
  2573.             dc.w     $A260
  2574.         EndM
  2575.     ELSE
  2576.         IMPORT_CFM_FUNCTION    PBSetVInfoSync
  2577.     ENDIF
  2578.  
  2579. ;
  2580. ; pascal OSErr PBSetVInfoAsync(HParmBlkPtr paramBlock)
  2581. ;
  2582.     IF ¬ GENERATINGCFM THEN
  2583.         ; parameters: 
  2584.         ;     paramBlock        => A0
  2585.         ; returns: 
  2586.         ;     OSErr             <= D0
  2587.         Macro
  2588.         _PBSetVInfoAsync
  2589.             moveq    #11,d0
  2590.             dc.w     $A660
  2591.         EndM
  2592.     ELSE
  2593.         IMPORT_CFM_FUNCTION    PBSetVInfoAsync
  2594.     ENDIF
  2595.  
  2596. ;
  2597. ; pascal OSErr PBHGetVInfoSync(HParmBlkPtr paramBlock)
  2598. ;
  2599.     IF ¬ GENERATINGCFM THEN
  2600.         ; parameters: 
  2601.         ;     paramBlock        => A0
  2602.         ; returns: 
  2603.         ;     OSErr             <= D0
  2604.         _PBHGetVInfoSync:    OPWORD    $A207
  2605.     ELSE
  2606.         IMPORT_CFM_FUNCTION    PBHGetVInfoSync
  2607.     ENDIF
  2608.  
  2609. ;
  2610. ; pascal OSErr PBHGetVInfoAsync(HParmBlkPtr paramBlock)
  2611. ;
  2612.     IF ¬ GENERATINGCFM THEN
  2613.         ; parameters: 
  2614.         ;     paramBlock        => A0
  2615.         ; returns: 
  2616.         ;     OSErr             <= D0
  2617.         _PBHGetVInfoAsync:    OPWORD    $A607
  2618.     ELSE
  2619.         IMPORT_CFM_FUNCTION    PBHGetVInfoAsync
  2620.     ENDIF
  2621.  
  2622. ;
  2623. ; pascal OSErr PBHOpenSync(HParmBlkPtr paramBlock)
  2624. ;
  2625.     IF ¬ GENERATINGCFM THEN
  2626.         ; parameters: 
  2627.         ;     paramBlock        => A0
  2628.         ; returns: 
  2629.         ;     OSErr             <= D0
  2630.         _PBHOpenSync:    OPWORD    $A200
  2631.     ELSE
  2632.         IMPORT_CFM_FUNCTION    PBHOpenSync
  2633.     ENDIF
  2634.  
  2635. ;
  2636. ; pascal OSErr PBHOpenAsync(HParmBlkPtr paramBlock)
  2637. ;
  2638.     IF ¬ GENERATINGCFM THEN
  2639.         ; parameters: 
  2640.         ;     paramBlock        => A0
  2641.         ; returns: 
  2642.         ;     OSErr             <= D0
  2643.         _PBHOpenAsync:    OPWORD    $A600
  2644.     ELSE
  2645.         IMPORT_CFM_FUNCTION    PBHOpenAsync
  2646.     ENDIF
  2647.  
  2648. ;
  2649. ; pascal OSErr PBHOpenRFSync(HParmBlkPtr paramBlock)
  2650. ;
  2651.     IF ¬ GENERATINGCFM THEN
  2652.         ; parameters: 
  2653.         ;     paramBlock        => A0
  2654.         ; returns: 
  2655.         ;     OSErr             <= D0
  2656.         _PBHOpenRFSync:    OPWORD    $A20A
  2657.     ELSE
  2658.         IMPORT_CFM_FUNCTION    PBHOpenRFSync
  2659.     ENDIF
  2660.  
  2661. ;
  2662. ; pascal OSErr PBHOpenRFAsync(HParmBlkPtr paramBlock)
  2663. ;
  2664.     IF ¬ GENERATINGCFM THEN
  2665.         ; parameters: 
  2666.         ;     paramBlock        => A0
  2667.         ; returns: 
  2668.         ;     OSErr             <= D0
  2669.         _PBHOpenRFAsync:    OPWORD    $A60A
  2670.     ELSE
  2671.         IMPORT_CFM_FUNCTION    PBHOpenRFAsync
  2672.     ENDIF
  2673.  
  2674. ;
  2675. ; pascal OSErr PBHOpenDFSync(HParmBlkPtr paramBlock)
  2676. ;
  2677.     IF ¬ GENERATINGCFM THEN
  2678.         ; parameters: 
  2679.         ;     paramBlock        => A0
  2680.         ; returns: 
  2681.         ;     OSErr             <= D0
  2682.         Macro
  2683.         _PBHOpenDFSync
  2684.             moveq    #26,d0
  2685.             dc.w     $A260
  2686.         EndM
  2687.     ELSE
  2688.         IMPORT_CFM_FUNCTION    PBHOpenDFSync
  2689.     ENDIF
  2690.  
  2691. ;
  2692. ; pascal OSErr PBHOpenDFAsync(HParmBlkPtr paramBlock)
  2693. ;
  2694.     IF ¬ GENERATINGCFM THEN
  2695.         ; parameters: 
  2696.         ;     paramBlock        => A0
  2697.         ; returns: 
  2698.         ;     OSErr             <= D0
  2699.         Macro
  2700.         _PBHOpenDFAsync
  2701.             moveq    #26,d0
  2702.             dc.w     $A660
  2703.         EndM
  2704.     ELSE
  2705.         IMPORT_CFM_FUNCTION    PBHOpenDFAsync
  2706.     ENDIF
  2707.  
  2708. ;
  2709. ; pascal OSErr PBHCreateSync(HParmBlkPtr paramBlock)
  2710. ;
  2711.     IF ¬ GENERATINGCFM THEN
  2712.         ; parameters: 
  2713.         ;     paramBlock        => A0
  2714.         ; returns: 
  2715.         ;     OSErr             <= D0
  2716.         _PBHCreateSync:    OPWORD    $A208
  2717.     ELSE
  2718.         IMPORT_CFM_FUNCTION    PBHCreateSync
  2719.     ENDIF
  2720.  
  2721. ;
  2722. ; pascal OSErr PBHCreateAsync(HParmBlkPtr paramBlock)
  2723. ;
  2724.     IF ¬ GENERATINGCFM THEN
  2725.         ; parameters: 
  2726.         ;     paramBlock        => A0
  2727.         ; returns: 
  2728.         ;     OSErr             <= D0
  2729.         _PBHCreateAsync:    OPWORD    $A608
  2730.     ELSE
  2731.         IMPORT_CFM_FUNCTION    PBHCreateAsync
  2732.     ENDIF
  2733.  
  2734. ;
  2735. ; pascal OSErr PBHDeleteSync(HParmBlkPtr paramBlock)
  2736. ;
  2737.     IF ¬ GENERATINGCFM THEN
  2738.         ; parameters: 
  2739.         ;     paramBlock        => A0
  2740.         ; returns: 
  2741.         ;     OSErr             <= D0
  2742.         _PBHDeleteSync:    OPWORD    $A209
  2743.     ELSE
  2744.         IMPORT_CFM_FUNCTION    PBHDeleteSync
  2745.     ENDIF
  2746.  
  2747. ;
  2748. ; pascal OSErr PBHDeleteAsync(HParmBlkPtr paramBlock)
  2749. ;
  2750.     IF ¬ GENERATINGCFM THEN
  2751.         ; parameters: 
  2752.         ;     paramBlock        => A0
  2753.         ; returns: 
  2754.         ;     OSErr             <= D0
  2755.         _PBHDeleteAsync:    OPWORD    $A609
  2756.     ELSE
  2757.         IMPORT_CFM_FUNCTION    PBHDeleteAsync
  2758.     ENDIF
  2759.  
  2760. ;
  2761. ; pascal OSErr PBHRenameSync(HParmBlkPtr paramBlock)
  2762. ;
  2763.     IF ¬ GENERATINGCFM THEN
  2764.         ; parameters: 
  2765.         ;     paramBlock        => A0
  2766.         ; returns: 
  2767.         ;     OSErr             <= D0
  2768.         _PBHRenameSync:    OPWORD    $A20B
  2769.     ELSE
  2770.         IMPORT_CFM_FUNCTION    PBHRenameSync
  2771.     ENDIF
  2772.  
  2773. ;
  2774. ; pascal OSErr PBHRenameAsync(HParmBlkPtr paramBlock)
  2775. ;
  2776.     IF ¬ GENERATINGCFM THEN
  2777.         ; parameters: 
  2778.         ;     paramBlock        => A0
  2779.         ; returns: 
  2780.         ;     OSErr             <= D0
  2781.         _PBHRenameAsync:    OPWORD    $A60B
  2782.     ELSE
  2783.         IMPORT_CFM_FUNCTION    PBHRenameAsync
  2784.     ENDIF
  2785.  
  2786. ;
  2787. ; pascal OSErr PBHRstFLockSync(HParmBlkPtr paramBlock)
  2788. ;
  2789.     IF ¬ GENERATINGCFM THEN
  2790.         ; parameters: 
  2791.         ;     paramBlock        => A0
  2792.         ; returns: 
  2793.         ;     OSErr             <= D0
  2794.         _PBHRstFLockSync:    OPWORD    $A242
  2795.     ELSE
  2796.         IMPORT_CFM_FUNCTION    PBHRstFLockSync
  2797.     ENDIF
  2798.  
  2799. ;
  2800. ; pascal OSErr PBHRstFLockAsync(HParmBlkPtr paramBlock)
  2801. ;
  2802.     IF ¬ GENERATINGCFM THEN
  2803.         ; parameters: 
  2804.         ;     paramBlock        => A0
  2805.         ; returns: 
  2806.         ;     OSErr             <= D0
  2807.         _PBHRstFLockAsync:    OPWORD    $A642
  2808.     ELSE
  2809.         IMPORT_CFM_FUNCTION    PBHRstFLockAsync
  2810.     ENDIF
  2811.  
  2812. ;
  2813. ; pascal OSErr PBHSetFLockSync(HParmBlkPtr paramBlock)
  2814. ;
  2815.     IF ¬ GENERATINGCFM THEN
  2816.         ; parameters: 
  2817.         ;     paramBlock        => A0
  2818.         ; returns: 
  2819.         ;     OSErr             <= D0
  2820.         _PBHSetFLockSync:    OPWORD    $A241
  2821.     ELSE
  2822.         IMPORT_CFM_FUNCTION    PBHSetFLockSync
  2823.     ENDIF
  2824.  
  2825. ;
  2826. ; pascal OSErr PBHSetFLockAsync(HParmBlkPtr paramBlock)
  2827. ;
  2828.     IF ¬ GENERATINGCFM THEN
  2829.         ; parameters: 
  2830.         ;     paramBlock        => A0
  2831.         ; returns: 
  2832.         ;     OSErr             <= D0
  2833.         _PBHSetFLockAsync:    OPWORD    $A641
  2834.     ELSE
  2835.         IMPORT_CFM_FUNCTION    PBHSetFLockAsync
  2836.     ENDIF
  2837.  
  2838. ;
  2839. ; pascal OSErr PBHGetFInfoSync(HParmBlkPtr paramBlock)
  2840. ;
  2841.     IF ¬ GENERATINGCFM THEN
  2842.         ; parameters: 
  2843.         ;     paramBlock        => A0
  2844.         ; returns: 
  2845.         ;     OSErr             <= D0
  2846.         _PBHGetFInfoSync:    OPWORD    $A20C
  2847.     ELSE
  2848.         IMPORT_CFM_FUNCTION    PBHGetFInfoSync
  2849.     ENDIF
  2850.  
  2851. ;
  2852. ; pascal OSErr PBHGetFInfoAsync(HParmBlkPtr paramBlock)
  2853. ;
  2854.     IF ¬ GENERATINGCFM THEN
  2855.         ; parameters: 
  2856.         ;     paramBlock        => A0
  2857.         ; returns: 
  2858.         ;     OSErr             <= D0
  2859.         _PBHGetFInfoAsync:    OPWORD    $A60C
  2860.     ELSE
  2861.         IMPORT_CFM_FUNCTION    PBHGetFInfoAsync
  2862.     ENDIF
  2863.  
  2864. ;
  2865. ; pascal OSErr PBHSetFInfoSync(HParmBlkPtr paramBlock)
  2866. ;
  2867.     IF ¬ GENERATINGCFM THEN
  2868.         ; parameters: 
  2869.         ;     paramBlock        => A0
  2870.         ; returns: 
  2871.         ;     OSErr             <= D0
  2872.         _PBHSetFInfoSync:    OPWORD    $A20D
  2873.     ELSE
  2874.         IMPORT_CFM_FUNCTION    PBHSetFInfoSync
  2875.     ENDIF
  2876.  
  2877. ;
  2878. ; pascal OSErr PBHSetFInfoAsync(HParmBlkPtr paramBlock)
  2879. ;
  2880.     IF ¬ GENERATINGCFM THEN
  2881.         ; parameters: 
  2882.         ;     paramBlock        => A0
  2883.         ; returns: 
  2884.         ;     OSErr             <= D0
  2885.         _PBHSetFInfoAsync:    OPWORD    $A60D
  2886.     ELSE
  2887.         IMPORT_CFM_FUNCTION    PBHSetFInfoAsync
  2888.     ENDIF
  2889.  
  2890. ;
  2891. ; pascal OSErr PBMakeFSSpecSync(HParmBlkPtr paramBlock)
  2892. ;
  2893.     IF ¬ GENERATINGCFM THEN
  2894.         ; parameters: 
  2895.         ;     paramBlock        => A0
  2896.         ; returns: 
  2897.         ;     OSErr             <= D0
  2898.         Macro
  2899.         _PBMakeFSSpecSync
  2900.             moveq    #27,d0
  2901.             dc.w     $A260
  2902.         EndM
  2903.     ELSE
  2904.         IMPORT_CFM_FUNCTION    PBMakeFSSpecSync
  2905.     ENDIF
  2906.  
  2907. ;
  2908. ; pascal OSErr PBMakeFSSpecAsync(HParmBlkPtr paramBlock)
  2909. ;
  2910.     IF ¬ GENERATINGCFM THEN
  2911.         ; parameters: 
  2912.         ;     paramBlock        => A0
  2913.         ; returns: 
  2914.         ;     OSErr             <= D0
  2915.         Macro
  2916.         _PBMakeFSSpecAsync
  2917.             moveq    #27,d0
  2918.             dc.w     $A660
  2919.         EndM
  2920.     ELSE
  2921.         IMPORT_CFM_FUNCTION    PBMakeFSSpecAsync
  2922.     ENDIF
  2923.  
  2924. ;
  2925. ; pascal void FInitQueue(void)
  2926. ;
  2927.     IF ¬ GENERATINGCFM THEN
  2928.         _FInitQueue:    OPWORD    $A016
  2929.     ELSE
  2930.         IMPORT_CFM_FUNCTION    FInitQueue
  2931.     ENDIF
  2932.  
  2933. ;
  2934. ; pascal QHdrPtr GetFSQHdr(void)
  2935. ;
  2936.     IF ¬ GENERATINGCFM THEN
  2937.         Macro
  2938.         _GetFSQHdr
  2939.             dc.w     $2EBC
  2940.             dc.w     $0000
  2941.             dc.w     $0360
  2942.         EndM
  2943.     ELSE
  2944.         IMPORT_CFM_FUNCTION    GetFSQHdr
  2945.     ENDIF
  2946.  
  2947. ;
  2948. ; pascal QHdrPtr GetVCBQHdr(void)
  2949. ;
  2950.     IF ¬ GENERATINGCFM THEN
  2951.         Macro
  2952.         _GetVCBQHdr
  2953.             dc.w     $2EBC
  2954.             dc.w     $0000
  2955.             dc.w     $0356
  2956.         EndM
  2957.     ELSE
  2958.         IMPORT_CFM_FUNCTION    GetVCBQHdr
  2959.     ENDIF
  2960.  
  2961.     IF OLDROUTINELOCATIONS  THEN
  2962. ;
  2963. ; pascal QHdrPtr GetDrvQHdr(void)
  2964. ;
  2965.     IF ¬ GENERATINGCFM THEN
  2966.         Macro
  2967.         _GetDrvQHdr
  2968.             dc.w     $2EBC
  2969.             dc.w     $0000
  2970.             dc.w     $0308
  2971.         EndM
  2972.     ELSE
  2973.         IMPORT_CFM_FUNCTION    GetDrvQHdr
  2974.     ENDIF
  2975.  
  2976.     ENDIF
  2977. ;
  2978. ; pascal OSErr HGetVol(StringPtr volName, short *vRefNum, long *dirID)
  2979. ;
  2980.     IF GENERATINGCFM THEN
  2981.         IMPORT_CFM_FUNCTION    HGetVol
  2982.     ENDIF
  2983.  
  2984. ;
  2985. ; pascal OSErr HOpen(short vRefNum, long dirID, ConstStr255Param fileName, SInt8 permission, short *refNum)
  2986. ;
  2987.     IF GENERATINGCFM THEN
  2988.         IMPORT_CFM_FUNCTION    HOpen
  2989.     ENDIF
  2990.  
  2991. ;
  2992. ; pascal OSErr HOpenDF(short vRefNum, long dirID, ConstStr255Param fileName, SInt8 permission, short *refNum)
  2993. ;
  2994.     IF GENERATINGCFM THEN
  2995.         IMPORT_CFM_FUNCTION    HOpenDF
  2996.     ENDIF
  2997.  
  2998. ;
  2999. ; pascal OSErr HOpenRF(short vRefNum, long dirID, ConstStr255Param fileName, SInt8 permission, short *refNum)
  3000. ;
  3001.     IF GENERATINGCFM THEN
  3002.         IMPORT_CFM_FUNCTION    HOpenRF
  3003.     ENDIF
  3004.  
  3005. ;
  3006. ; pascal OSErr AllocContig(short refNum, long *count)
  3007. ;
  3008.     IF GENERATINGCFM THEN
  3009.         IMPORT_CFM_FUNCTION    AllocContig
  3010.     ENDIF
  3011.  
  3012. ;
  3013. ; pascal OSErr HCreate(short vRefNum, long dirID, ConstStr255Param fileName, OSType creator, OSType fileType)
  3014. ;
  3015.     IF GENERATINGCFM THEN
  3016.         IMPORT_CFM_FUNCTION    HCreate
  3017.     ENDIF
  3018.  
  3019. ;
  3020. ; pascal OSErr DirCreate(short vRefNum, long parentDirID, ConstStr255Param directoryName, long *createdDirID)
  3021. ;
  3022.     IF GENERATINGCFM THEN
  3023.         IMPORT_CFM_FUNCTION    DirCreate
  3024.     ENDIF
  3025.  
  3026. ;
  3027. ; pascal OSErr HDelete(short vRefNum, long dirID, ConstStr255Param fileName)
  3028. ;
  3029.     IF GENERATINGCFM THEN
  3030.         IMPORT_CFM_FUNCTION    HDelete
  3031.     ENDIF
  3032.  
  3033. ;
  3034. ; pascal OSErr HGetFInfo(short vRefNum, long dirID, ConstStr255Param fileName, FInfo *fndrInfo)
  3035. ;
  3036.     IF GENERATINGCFM THEN
  3037.         IMPORT_CFM_FUNCTION    HGetFInfo
  3038.     ENDIF
  3039.  
  3040. ;
  3041. ; pascal OSErr HSetFInfo(short vRefNum, long dirID, ConstStr255Param fileName, const FInfo *fndrInfo)
  3042. ;
  3043.     IF GENERATINGCFM THEN
  3044.         IMPORT_CFM_FUNCTION    HSetFInfo
  3045.     ENDIF
  3046.  
  3047. ;
  3048. ; pascal OSErr HSetFLock(short vRefNum, long dirID, ConstStr255Param fileName)
  3049. ;
  3050.     IF GENERATINGCFM THEN
  3051.         IMPORT_CFM_FUNCTION    HSetFLock
  3052.     ENDIF
  3053.  
  3054. ;
  3055. ; pascal OSErr HRstFLock(short vRefNum, long dirID, ConstStr255Param fileName)
  3056. ;
  3057.     IF GENERATINGCFM THEN
  3058.         IMPORT_CFM_FUNCTION    HRstFLock
  3059.     ENDIF
  3060.  
  3061. ;
  3062. ; pascal OSErr HRename(short vRefNum, long dirID, ConstStr255Param oldName, ConstStr255Param newName)
  3063. ;
  3064.     IF GENERATINGCFM THEN
  3065.         IMPORT_CFM_FUNCTION    HRename
  3066.     ENDIF
  3067.  
  3068. ;
  3069. ; pascal OSErr CatMove(short vRefNum, long dirID, ConstStr255Param oldName, long newDirID, ConstStr255Param newName)
  3070. ;
  3071.     IF GENERATINGCFM THEN
  3072.         IMPORT_CFM_FUNCTION    CatMove
  3073.     ENDIF
  3074.  
  3075. ;
  3076. ; pascal OSErr OpenWD(short vRefNum, long dirID, long procID, short *wdRefNum)
  3077. ;
  3078.     IF GENERATINGCFM THEN
  3079.         IMPORT_CFM_FUNCTION    OpenWD
  3080.     ENDIF
  3081.  
  3082. ;
  3083. ; pascal OSErr CloseWD(short wdRefNum)
  3084. ;
  3085.     IF GENERATINGCFM THEN
  3086.         IMPORT_CFM_FUNCTION    CloseWD
  3087.     ENDIF
  3088.  
  3089. ;
  3090. ; pascal OSErr GetWDInfo(short wdRefNum, short *vRefNum, long *dirID, long *procID)
  3091. ;
  3092.     IF GENERATINGCFM THEN
  3093.         IMPORT_CFM_FUNCTION    GetWDInfo
  3094.     ENDIF
  3095.  
  3096. ;  shared environment  
  3097. ;
  3098. ; pascal OSErr PBHGetVolParmsSync(HParmBlkPtr paramBlock)
  3099. ;
  3100.     IF ¬ GENERATINGCFM THEN
  3101.         ; parameters: 
  3102.         ;     paramBlock        => A0
  3103.         ; returns: 
  3104.         ;     OSErr             <= D0
  3105.         Macro
  3106.         _PBHGetVolParmsSync
  3107.             moveq    #48,d0
  3108.             dc.w     $A260
  3109.         EndM
  3110.     ELSE
  3111.         IMPORT_CFM_FUNCTION    PBHGetVolParmsSync
  3112.     ENDIF
  3113.  
  3114. ;
  3115. ; pascal OSErr PBHGetVolParmsAsync(HParmBlkPtr paramBlock)
  3116. ;
  3117.     IF ¬ GENERATINGCFM THEN
  3118.         ; parameters: 
  3119.         ;     paramBlock        => A0
  3120.         ; returns: 
  3121.         ;     OSErr             <= D0
  3122.         Macro
  3123.         _PBHGetVolParmsAsync
  3124.             moveq    #48,d0
  3125.             dc.w     $A660
  3126.         EndM
  3127.     ELSE
  3128.         IMPORT_CFM_FUNCTION    PBHGetVolParmsAsync
  3129.     ENDIF
  3130.  
  3131. ;
  3132. ; pascal OSErr PBHGetLogInInfoSync(HParmBlkPtr paramBlock)
  3133. ;
  3134.     IF ¬ GENERATINGCFM THEN
  3135.         ; parameters: 
  3136.         ;     paramBlock        => A0
  3137.         ; returns: 
  3138.         ;     OSErr             <= D0
  3139.         Macro
  3140.         _PBHGetLogInInfoSync
  3141.             moveq    #49,d0
  3142.             dc.w     $A260
  3143.         EndM
  3144.     ELSE
  3145.         IMPORT_CFM_FUNCTION    PBHGetLogInInfoSync
  3146.     ENDIF
  3147.  
  3148. ;
  3149. ; pascal OSErr PBHGetLogInInfoAsync(HParmBlkPtr paramBlock)
  3150. ;
  3151.     IF ¬ GENERATINGCFM THEN
  3152.         ; parameters: 
  3153.         ;     paramBlock        => A0
  3154.         ; returns: 
  3155.         ;     OSErr             <= D0
  3156.         Macro
  3157.         _PBHGetLogInInfoAsync
  3158.             moveq    #49,d0
  3159.             dc.w     $A660
  3160.         EndM
  3161.     ELSE
  3162.         IMPORT_CFM_FUNCTION    PBHGetLogInInfoAsync
  3163.     ENDIF
  3164.  
  3165. ;
  3166. ; pascal OSErr PBHGetDirAccessSync(HParmBlkPtr paramBlock)
  3167. ;
  3168.     IF ¬ GENERATINGCFM THEN
  3169.         ; parameters: 
  3170.         ;     paramBlock        => A0
  3171.         ; returns: 
  3172.         ;     OSErr             <= D0
  3173.         Macro
  3174.         _PBHGetDirAccessSync
  3175.             moveq    #50,d0
  3176.             dc.w     $A260
  3177.         EndM
  3178.     ELSE
  3179.         IMPORT_CFM_FUNCTION    PBHGetDirAccessSync
  3180.     ENDIF
  3181.  
  3182. ;
  3183. ; pascal OSErr PBHGetDirAccessAsync(HParmBlkPtr paramBlock)
  3184. ;
  3185.     IF ¬ GENERATINGCFM THEN
  3186.         ; parameters: 
  3187.         ;     paramBlock        => A0
  3188.         ; returns: 
  3189.         ;     OSErr             <= D0
  3190.         Macro
  3191.         _PBHGetDirAccessAsync
  3192.             moveq    #50,d0
  3193.             dc.w     $A660
  3194.         EndM
  3195.     ELSE
  3196.         IMPORT_CFM_FUNCTION    PBHGetDirAccessAsync
  3197.     ENDIF
  3198.  
  3199. ;
  3200. ; pascal OSErr PBHSetDirAccessSync(HParmBlkPtr paramBlock)
  3201. ;
  3202.     IF ¬ GENERATINGCFM THEN
  3203.         ; parameters: 
  3204.         ;     paramBlock        => A0
  3205.         ; returns: 
  3206.         ;     OSErr             <= D0
  3207.         Macro
  3208.         _PBHSetDirAccessSync
  3209.             moveq    #51,d0
  3210.             dc.w     $A260
  3211.         EndM
  3212.     ELSE
  3213.         IMPORT_CFM_FUNCTION    PBHSetDirAccessSync
  3214.     ENDIF
  3215.  
  3216. ;
  3217. ; pascal OSErr PBHSetDirAccessAsync(HParmBlkPtr paramBlock)
  3218. ;
  3219.     IF ¬ GENERATINGCFM THEN
  3220.         ; parameters: 
  3221.         ;     paramBlock        => A0
  3222.         ; returns: 
  3223.         ;     OSErr             <= D0
  3224.         Macro
  3225.         _PBHSetDirAccessAsync
  3226.             moveq    #51,d0
  3227.             dc.w     $A660
  3228.         EndM
  3229.     ELSE
  3230.         IMPORT_CFM_FUNCTION    PBHSetDirAccessAsync
  3231.     ENDIF
  3232.  
  3233. ;
  3234. ; pascal OSErr PBHMapIDSync(HParmBlkPtr paramBlock)
  3235. ;
  3236.     IF ¬ GENERATINGCFM THEN
  3237.         ; parameters: 
  3238.         ;     paramBlock        => A0
  3239.         ; returns: 
  3240.         ;     OSErr             <= D0
  3241.         Macro
  3242.         _PBHMapIDSync
  3243.             moveq    #52,d0
  3244.             dc.w     $A260
  3245.         EndM
  3246.     ELSE
  3247.         IMPORT_CFM_FUNCTION    PBHMapIDSync
  3248.     ENDIF
  3249.  
  3250. ;
  3251. ; pascal OSErr PBHMapIDAsync(HParmBlkPtr paramBlock)
  3252. ;
  3253.     IF ¬ GENERATINGCFM THEN
  3254.         ; parameters: 
  3255.         ;     paramBlock        => A0
  3256.         ; returns: 
  3257.         ;     OSErr             <= D0
  3258.         Macro
  3259.         _PBHMapIDAsync
  3260.             moveq    #52,d0
  3261.             dc.w     $A660
  3262.         EndM
  3263.     ELSE
  3264.         IMPORT_CFM_FUNCTION    PBHMapIDAsync
  3265.     ENDIF
  3266.  
  3267. ;
  3268. ; pascal OSErr PBHMapNameSync(HParmBlkPtr paramBlock)
  3269. ;
  3270.     IF ¬ GENERATINGCFM THEN
  3271.         ; parameters: 
  3272.         ;     paramBlock        => A0
  3273.         ; returns: 
  3274.         ;     OSErr             <= D0
  3275.         Macro
  3276.         _PBHMapNameSync
  3277.             moveq    #53,d0
  3278.             dc.w     $A260
  3279.         EndM
  3280.     ELSE
  3281.         IMPORT_CFM_FUNCTION    PBHMapNameSync
  3282.     ENDIF
  3283.  
  3284. ;
  3285. ; pascal OSErr PBHMapNameAsync(HParmBlkPtr paramBlock)
  3286. ;
  3287.     IF ¬ GENERATINGCFM THEN
  3288.         ; parameters: 
  3289.         ;     paramBlock        => A0
  3290.         ; returns: 
  3291.         ;     OSErr             <= D0
  3292.         Macro
  3293.         _PBHMapNameAsync
  3294.             moveq    #53,d0
  3295.             dc.w     $A660
  3296.         EndM
  3297.     ELSE
  3298.         IMPORT_CFM_FUNCTION    PBHMapNameAsync
  3299.     ENDIF
  3300.  
  3301. ;
  3302. ; pascal OSErr PBHCopyFileSync(HParmBlkPtr paramBlock)
  3303. ;
  3304.     IF ¬ GENERATINGCFM THEN
  3305.         ; parameters: 
  3306.         ;     paramBlock        => A0
  3307.         ; returns: 
  3308.         ;     OSErr             <= D0
  3309.         Macro
  3310.         _PBHCopyFileSync
  3311.             moveq    #54,d0
  3312.             dc.w     $A260
  3313.         EndM
  3314.     ELSE
  3315.         IMPORT_CFM_FUNCTION    PBHCopyFileSync
  3316.     ENDIF
  3317.  
  3318. ;
  3319. ; pascal OSErr PBHCopyFileAsync(HParmBlkPtr paramBlock)
  3320. ;
  3321.     IF ¬ GENERATINGCFM THEN
  3322.         ; parameters: 
  3323.         ;     paramBlock        => A0
  3324.         ; returns: 
  3325.         ;     OSErr             <= D0
  3326.         Macro
  3327.         _PBHCopyFileAsync
  3328.             moveq    #54,d0
  3329.             dc.w     $A660
  3330.         EndM
  3331.     ELSE
  3332.         IMPORT_CFM_FUNCTION    PBHCopyFileAsync
  3333.     ENDIF
  3334.  
  3335. ;
  3336. ; pascal OSErr PBHMoveRenameSync(HParmBlkPtr paramBlock)
  3337. ;
  3338.     IF ¬ GENERATINGCFM THEN
  3339.         ; parameters: 
  3340.         ;     paramBlock        => A0
  3341.         ; returns: 
  3342.         ;     OSErr             <= D0
  3343.         Macro
  3344.         _PBHMoveRenameSync
  3345.             moveq    #55,d0
  3346.             dc.w     $A260
  3347.         EndM
  3348.     ELSE
  3349.         IMPORT_CFM_FUNCTION    PBHMoveRenameSync
  3350.     ENDIF
  3351.  
  3352. ;
  3353. ; pascal OSErr PBHMoveRenameAsync(HParmBlkPtr paramBlock)
  3354. ;
  3355.     IF ¬ GENERATINGCFM THEN
  3356.         ; parameters: 
  3357.         ;     paramBlock        => A0
  3358.         ; returns: 
  3359.         ;     OSErr             <= D0
  3360.         Macro
  3361.         _PBHMoveRenameAsync
  3362.             moveq    #55,d0
  3363.             dc.w     $A660
  3364.         EndM
  3365.     ELSE
  3366.         IMPORT_CFM_FUNCTION    PBHMoveRenameAsync
  3367.     ENDIF
  3368.  
  3369. ;
  3370. ; pascal OSErr PBHOpenDenySync(HParmBlkPtr paramBlock)
  3371. ;
  3372.     IF ¬ GENERATINGCFM THEN
  3373.         ; parameters: 
  3374.         ;     paramBlock        => A0
  3375.         ; returns: 
  3376.         ;     OSErr             <= D0
  3377.         Macro
  3378.         _PBHOpenDenySync
  3379.             moveq    #56,d0
  3380.             dc.w     $A260
  3381.         EndM
  3382.     ELSE
  3383.         IMPORT_CFM_FUNCTION    PBHOpenDenySync
  3384.     ENDIF
  3385.  
  3386. ;
  3387. ; pascal OSErr PBHOpenDenyAsync(HParmBlkPtr paramBlock)
  3388. ;
  3389.     IF ¬ GENERATINGCFM THEN
  3390.         ; parameters: 
  3391.         ;     paramBlock        => A0
  3392.         ; returns: 
  3393.         ;     OSErr             <= D0
  3394.         Macro
  3395.         _PBHOpenDenyAsync
  3396.             moveq    #56,d0
  3397.             dc.w     $A660
  3398.         EndM
  3399.     ELSE
  3400.         IMPORT_CFM_FUNCTION    PBHOpenDenyAsync
  3401.     ENDIF
  3402.  
  3403. ;
  3404. ; pascal OSErr PBHOpenRFDenySync(HParmBlkPtr paramBlock)
  3405. ;
  3406.     IF ¬ GENERATINGCFM THEN
  3407.         ; parameters: 
  3408.         ;     paramBlock        => A0
  3409.         ; returns: 
  3410.         ;     OSErr             <= D0
  3411.         Macro
  3412.         _PBHOpenRFDenySync
  3413.             moveq    #57,d0
  3414.             dc.w     $A260
  3415.         EndM
  3416.     ELSE
  3417.         IMPORT_CFM_FUNCTION    PBHOpenRFDenySync
  3418.     ENDIF
  3419.  
  3420. ;
  3421. ; pascal OSErr PBHOpenRFDenyAsync(HParmBlkPtr paramBlock)
  3422. ;
  3423.     IF ¬ GENERATINGCFM THEN
  3424.         ; parameters: 
  3425.         ;     paramBlock        => A0
  3426.         ; returns: 
  3427.         ;     OSErr             <= D0
  3428.         Macro
  3429.         _PBHOpenRFDenyAsync
  3430.             moveq    #57,d0
  3431.             dc.w     $A660
  3432.         EndM
  3433.     ELSE
  3434.         IMPORT_CFM_FUNCTION    PBHOpenRFDenyAsync
  3435.     ENDIF
  3436.  
  3437. ;
  3438. ; pascal OSErr PBExchangeFilesSync(HParmBlkPtr paramBlock)
  3439. ;
  3440.     IF ¬ GENERATINGCFM THEN
  3441.         ; parameters: 
  3442.         ;     paramBlock        => A0
  3443.         ; returns: 
  3444.         ;     OSErr             <= D0
  3445.         Macro
  3446.         _PBExchangeFilesSync
  3447.             moveq    #23,d0
  3448.             dc.w     $A260
  3449.         EndM
  3450.     ELSE
  3451.         IMPORT_CFM_FUNCTION    PBExchangeFilesSync
  3452.     ENDIF
  3453.  
  3454. ;
  3455. ; pascal OSErr PBExchangeFilesAsync(HParmBlkPtr paramBlock)
  3456. ;
  3457.     IF ¬ GENERATINGCFM THEN
  3458.         ; parameters: 
  3459.         ;     paramBlock        => A0
  3460.         ; returns: 
  3461.         ;     OSErr             <= D0
  3462.         Macro
  3463.         _PBExchangeFilesAsync
  3464.             moveq    #23,d0
  3465.             dc.w     $A660
  3466.         EndM
  3467.     ELSE
  3468.         IMPORT_CFM_FUNCTION    PBExchangeFilesAsync
  3469.     ENDIF
  3470.  
  3471. ;
  3472. ; pascal OSErr PBCreateFileIDRefSync(HParmBlkPtr paramBlock)
  3473. ;
  3474.     IF ¬ GENERATINGCFM THEN
  3475.         ; parameters: 
  3476.         ;     paramBlock        => A0
  3477.         ; returns: 
  3478.         ;     OSErr             <= D0
  3479.         Macro
  3480.         _PBCreateFileIDRefSync
  3481.             moveq    #20,d0
  3482.             dc.w     $A260
  3483.         EndM
  3484.     ELSE
  3485.         IMPORT_CFM_FUNCTION    PBCreateFileIDRefSync
  3486.     ENDIF
  3487.  
  3488. ;
  3489. ; pascal OSErr PBCreateFileIDRefAsync(HParmBlkPtr paramBlock)
  3490. ;
  3491.     IF ¬ GENERATINGCFM THEN
  3492.         ; parameters: 
  3493.         ;     paramBlock        => A0
  3494.         ; returns: 
  3495.         ;     OSErr             <= D0
  3496.         Macro
  3497.         _PBCreateFileIDRefAsync
  3498.             moveq    #20,d0
  3499.             dc.w     $A660
  3500.         EndM
  3501.     ELSE
  3502.         IMPORT_CFM_FUNCTION    PBCreateFileIDRefAsync
  3503.     ENDIF
  3504.  
  3505. ;
  3506. ; pascal OSErr PBResolveFileIDRefSync(HParmBlkPtr paramBlock)
  3507. ;
  3508.     IF ¬ GENERATINGCFM THEN
  3509.         ; parameters: 
  3510.         ;     paramBlock        => A0
  3511.         ; returns: 
  3512.         ;     OSErr             <= D0
  3513.         Macro
  3514.         _PBResolveFileIDRefSync
  3515.             moveq    #22,d0
  3516.             dc.w     $A260
  3517.         EndM
  3518.     ELSE
  3519.         IMPORT_CFM_FUNCTION    PBResolveFileIDRefSync
  3520.     ENDIF
  3521.  
  3522. ;
  3523. ; pascal OSErr PBResolveFileIDRefAsync(HParmBlkPtr paramBlock)
  3524. ;
  3525.     IF ¬ GENERATINGCFM THEN
  3526.         ; parameters: 
  3527.         ;     paramBlock        => A0
  3528.         ; returns: 
  3529.         ;     OSErr             <= D0
  3530.         Macro
  3531.         _PBResolveFileIDRefAsync
  3532.             moveq    #22,d0
  3533.             dc.w     $A660
  3534.         EndM
  3535.     ELSE
  3536.         IMPORT_CFM_FUNCTION    PBResolveFileIDRefAsync
  3537.     ENDIF
  3538.  
  3539. ;
  3540. ; pascal OSErr PBDeleteFileIDRefSync(HParmBlkPtr paramBlock)
  3541. ;
  3542.     IF ¬ GENERATINGCFM THEN
  3543.         ; parameters: 
  3544.         ;     paramBlock        => A0
  3545.         ; returns: 
  3546.         ;     OSErr             <= D0
  3547.         Macro
  3548.         _PBDeleteFileIDRefSync
  3549.             moveq    #21,d0
  3550.             dc.w     $A260
  3551.         EndM
  3552.     ELSE
  3553.         IMPORT_CFM_FUNCTION    PBDeleteFileIDRefSync
  3554.     ENDIF
  3555.  
  3556. ;
  3557. ; pascal OSErr PBDeleteFileIDRefAsync(HParmBlkPtr paramBlock)
  3558. ;
  3559.     IF ¬ GENERATINGCFM THEN
  3560.         ; parameters: 
  3561.         ;     paramBlock        => A0
  3562.         ; returns: 
  3563.         ;     OSErr             <= D0
  3564.         Macro
  3565.         _PBDeleteFileIDRefAsync
  3566.             moveq    #21,d0
  3567.             dc.w     $A660
  3568.         EndM
  3569.     ELSE
  3570.         IMPORT_CFM_FUNCTION    PBDeleteFileIDRefAsync
  3571.     ENDIF
  3572.  
  3573. ;
  3574. ; pascal OSErr PBGetForeignPrivsSync(HParmBlkPtr paramBlock)
  3575. ;
  3576.     IF ¬ GENERATINGCFM THEN
  3577.         ; parameters: 
  3578.         ;     paramBlock        => A0
  3579.         ; returns: 
  3580.         ;     OSErr             <= D0
  3581.         Macro
  3582.         _PBGetForeignPrivsSync
  3583.             moveq    #96,d0
  3584.             dc.w     $A260
  3585.         EndM
  3586.     ELSE
  3587.         IMPORT_CFM_FUNCTION    PBGetForeignPrivsSync
  3588.     ENDIF
  3589.  
  3590. ;
  3591. ; pascal OSErr PBGetForeignPrivsAsync(HParmBlkPtr paramBlock)
  3592. ;
  3593.     IF ¬ GENERATINGCFM THEN
  3594.         ; parameters: 
  3595.         ;     paramBlock        => A0
  3596.         ; returns: 
  3597.         ;     OSErr             <= D0
  3598.         Macro
  3599.         _PBGetForeignPrivsAsync
  3600.             moveq    #96,d0
  3601.             dc.w     $A660
  3602.         EndM
  3603.     ELSE
  3604.         IMPORT_CFM_FUNCTION    PBGetForeignPrivsAsync
  3605.     ENDIF
  3606.  
  3607. ;
  3608. ; pascal OSErr PBSetForeignPrivsSync(HParmBlkPtr paramBlock)
  3609. ;
  3610.     IF ¬ GENERATINGCFM THEN
  3611.         ; parameters: 
  3612.         ;     paramBlock        => A0
  3613.         ; returns: 
  3614.         ;     OSErr             <= D0
  3615.         Macro
  3616.         _PBSetForeignPrivsSync
  3617.             moveq    #97,d0
  3618.             dc.w     $A260
  3619.         EndM
  3620.     ELSE
  3621.         IMPORT_CFM_FUNCTION    PBSetForeignPrivsSync
  3622.     ENDIF
  3623.  
  3624. ;
  3625. ; pascal OSErr PBSetForeignPrivsAsync(HParmBlkPtr paramBlock)
  3626. ;
  3627.     IF ¬ GENERATINGCFM THEN
  3628.         ; parameters: 
  3629.         ;     paramBlock        => A0
  3630.         ; returns: 
  3631.         ;     OSErr             <= D0
  3632.         Macro
  3633.         _PBSetForeignPrivsAsync
  3634.             moveq    #97,d0
  3635.             dc.w     $A660
  3636.         EndM
  3637.     ELSE
  3638.         IMPORT_CFM_FUNCTION    PBSetForeignPrivsAsync
  3639.     ENDIF
  3640.  
  3641. ;  Desktop Manager  
  3642. ;
  3643. ; pascal OSErr PBDTGetPath(DTPBPtr paramBlock)
  3644. ;
  3645.     IF ¬ GENERATINGCFM THEN
  3646.         ; parameters: 
  3647.         ;     paramBlock        => A0
  3648.         ; returns: 
  3649.         ;     OSErr             <= D0
  3650.         Macro
  3651.         _PBDTGetPath
  3652.             moveq    #32,d0
  3653.             dc.w     $A260
  3654.         EndM
  3655.     ELSE
  3656.         IMPORT_CFM_FUNCTION    PBDTGetPath
  3657.     ENDIF
  3658.  
  3659. ;
  3660. ; pascal OSErr PBDTCloseDown(DTPBPtr paramBlock)
  3661. ;
  3662.     IF ¬ GENERATINGCFM THEN
  3663.         ; parameters: 
  3664.         ;     paramBlock        => A0
  3665.         ; returns: 
  3666.         ;     OSErr             <= D0
  3667.         Macro
  3668.         _PBDTCloseDown
  3669.             moveq    #33,d0
  3670.             dc.w     $A260
  3671.         EndM
  3672.     ELSE
  3673.         IMPORT_CFM_FUNCTION    PBDTCloseDown
  3674.     ENDIF
  3675.  
  3676. ;
  3677. ; pascal OSErr PBDTAddIconSync(DTPBPtr paramBlock)
  3678. ;
  3679.     IF ¬ GENERATINGCFM THEN
  3680.         ; parameters: 
  3681.         ;     paramBlock        => A0
  3682.         ; returns: 
  3683.         ;     OSErr             <= D0
  3684.         Macro
  3685.         _PBDTAddIconSync
  3686.             moveq    #34,d0
  3687.             dc.w     $A260
  3688.         EndM
  3689.     ELSE
  3690.         IMPORT_CFM_FUNCTION    PBDTAddIconSync
  3691.     ENDIF
  3692.  
  3693. ;
  3694. ; pascal OSErr PBDTAddIconAsync(DTPBPtr paramBlock)
  3695. ;
  3696.     IF ¬ GENERATINGCFM THEN
  3697.         ; parameters: 
  3698.         ;     paramBlock        => A0
  3699.         ; returns: 
  3700.         ;     OSErr             <= D0
  3701.         Macro
  3702.         _PBDTAddIconAsync
  3703.             moveq    #34,d0
  3704.             dc.w     $A660
  3705.         EndM
  3706.     ELSE
  3707.         IMPORT_CFM_FUNCTION    PBDTAddIconAsync
  3708.     ENDIF
  3709.  
  3710. ;
  3711. ; pascal OSErr PBDTGetIconSync(DTPBPtr paramBlock)
  3712. ;
  3713.     IF ¬ GENERATINGCFM THEN
  3714.         ; parameters: 
  3715.         ;     paramBlock        => A0
  3716.         ; returns: 
  3717.         ;     OSErr             <= D0
  3718.         Macro
  3719.         _PBDTGetIconSync
  3720.             moveq    #35,d0
  3721.             dc.w     $A260
  3722.         EndM
  3723.     ELSE
  3724.         IMPORT_CFM_FUNCTION    PBDTGetIconSync
  3725.     ENDIF
  3726.  
  3727. ;
  3728. ; pascal OSErr PBDTGetIconAsync(DTPBPtr paramBlock)
  3729. ;
  3730.     IF ¬ GENERATINGCFM THEN
  3731.         ; parameters: 
  3732.         ;     paramBlock        => A0
  3733.         ; returns: 
  3734.         ;     OSErr             <= D0
  3735.         Macro
  3736.         _PBDTGetIconAsync
  3737.             moveq    #35,d0
  3738.             dc.w     $A660
  3739.         EndM
  3740.     ELSE
  3741.         IMPORT_CFM_FUNCTION    PBDTGetIconAsync
  3742.     ENDIF
  3743.  
  3744. ;
  3745. ; pascal OSErr PBDTGetIconInfoSync(DTPBPtr paramBlock)
  3746. ;
  3747.     IF ¬ GENERATINGCFM THEN
  3748.         ; parameters: 
  3749.         ;     paramBlock        => A0
  3750.         ; returns: 
  3751.         ;     OSErr             <= D0
  3752.         Macro
  3753.         _PBDTGetIconInfoSync
  3754.             moveq    #36,d0
  3755.             dc.w     $A260
  3756.         EndM
  3757.     ELSE
  3758.         IMPORT_CFM_FUNCTION    PBDTGetIconInfoSync
  3759.     ENDIF
  3760.  
  3761. ;
  3762. ; pascal OSErr PBDTGetIconInfoAsync(DTPBPtr paramBlock)
  3763. ;
  3764.     IF ¬ GENERATINGCFM THEN
  3765.         ; parameters: 
  3766.         ;     paramBlock        => A0
  3767.         ; returns: 
  3768.         ;     OSErr             <= D0
  3769.         Macro
  3770.         _PBDTGetIconInfoAsync
  3771.             moveq    #36,d0
  3772.             dc.w     $A660
  3773.         EndM
  3774.     ELSE
  3775.         IMPORT_CFM_FUNCTION    PBDTGetIconInfoAsync
  3776.     ENDIF
  3777.  
  3778. ;
  3779. ; pascal OSErr PBDTAddAPPLSync(DTPBPtr paramBlock)
  3780. ;
  3781.     IF ¬ GENERATINGCFM THEN
  3782.         ; parameters: 
  3783.         ;     paramBlock        => A0
  3784.         ; returns: 
  3785.         ;     OSErr             <= D0
  3786.         Macro
  3787.         _PBDTAddAPPLSync
  3788.             moveq    #37,d0
  3789.             dc.w     $A260
  3790.         EndM
  3791.     ELSE
  3792.         IMPORT_CFM_FUNCTION    PBDTAddAPPLSync
  3793.     ENDIF
  3794.  
  3795. ;
  3796. ; pascal OSErr PBDTAddAPPLAsync(DTPBPtr paramBlock)
  3797. ;
  3798.     IF ¬ GENERATINGCFM THEN
  3799.         ; parameters: 
  3800.         ;     paramBlock        => A0
  3801.         ; returns: 
  3802.         ;     OSErr             <= D0
  3803.         Macro
  3804.         _PBDTAddAPPLAsync
  3805.             moveq    #37,d0
  3806.             dc.w     $A660
  3807.         EndM
  3808.     ELSE
  3809.         IMPORT_CFM_FUNCTION    PBDTAddAPPLAsync
  3810.     ENDIF
  3811.  
  3812. ;
  3813. ; pascal OSErr PBDTRemoveAPPLSync(DTPBPtr paramBlock)
  3814. ;
  3815.     IF ¬ GENERATINGCFM THEN
  3816.         ; parameters: 
  3817.         ;     paramBlock        => A0
  3818.         ; returns: 
  3819.         ;     OSErr             <= D0
  3820.         Macro
  3821.         _PBDTRemoveAPPLSync
  3822.             moveq    #38,d0
  3823.             dc.w     $A260
  3824.         EndM
  3825.     ELSE
  3826.         IMPORT_CFM_FUNCTION    PBDTRemoveAPPLSync
  3827.     ENDIF
  3828.  
  3829. ;
  3830. ; pascal OSErr PBDTRemoveAPPLAsync(DTPBPtr paramBlock)
  3831. ;
  3832.     IF ¬ GENERATINGCFM THEN
  3833.         ; parameters: 
  3834.         ;     paramBlock        => A0
  3835.         ; returns: 
  3836.         ;     OSErr             <= D0
  3837.         Macro
  3838.         _PBDTRemoveAPPLAsync
  3839.             moveq    #38,d0
  3840.             dc.w     $A660
  3841.         EndM
  3842.     ELSE
  3843.         IMPORT_CFM_FUNCTION    PBDTRemoveAPPLAsync
  3844.     ENDIF
  3845.  
  3846. ;
  3847. ; pascal OSErr PBDTGetAPPLSync(DTPBPtr paramBlock)
  3848. ;
  3849.     IF ¬ GENERATINGCFM THEN
  3850.         ; parameters: 
  3851.         ;     paramBlock        => A0
  3852.         ; returns: 
  3853.         ;     OSErr             <= D0
  3854.         Macro
  3855.         _PBDTGetAPPLSync
  3856.             moveq    #39,d0
  3857.             dc.w     $A260
  3858.         EndM
  3859.     ELSE
  3860.         IMPORT_CFM_FUNCTION    PBDTGetAPPLSync
  3861.     ENDIF
  3862.  
  3863. ;
  3864. ; pascal OSErr PBDTGetAPPLAsync(DTPBPtr paramBlock)
  3865. ;
  3866.     IF ¬ GENERATINGCFM THEN
  3867.         ; parameters: 
  3868.         ;     paramBlock        => A0
  3869.         ; returns: 
  3870.         ;     OSErr             <= D0
  3871.         Macro
  3872.         _PBDTGetAPPLAsync
  3873.             moveq    #39,d0
  3874.             dc.w     $A660
  3875.         EndM
  3876.     ELSE
  3877.         IMPORT_CFM_FUNCTION    PBDTGetAPPLAsync
  3878.     ENDIF
  3879.  
  3880. ;
  3881. ; pascal OSErr PBDTSetCommentSync(DTPBPtr paramBlock)
  3882. ;
  3883.     IF ¬ GENERATINGCFM THEN
  3884.         ; parameters: 
  3885.         ;     paramBlock        => A0
  3886.         ; returns: 
  3887.         ;     OSErr             <= D0
  3888.         Macro
  3889.         _PBDTSetCommentSync
  3890.             moveq    #40,d0
  3891.             dc.w     $A260
  3892.         EndM
  3893.     ELSE
  3894.         IMPORT_CFM_FUNCTION    PBDTSetCommentSync
  3895.     ENDIF
  3896.  
  3897. ;
  3898. ; pascal OSErr PBDTSetCommentAsync(DTPBPtr paramBlock)
  3899. ;
  3900.     IF ¬ GENERATINGCFM THEN
  3901.         ; parameters: 
  3902.         ;     paramBlock        => A0
  3903.         ; returns: 
  3904.         ;     OSErr             <= D0
  3905.         Macro
  3906.         _PBDTSetCommentAsync
  3907.             moveq    #40,d0
  3908.             dc.w     $A660
  3909.         EndM
  3910.     ELSE
  3911.         IMPORT_CFM_FUNCTION    PBDTSetCommentAsync
  3912.     ENDIF
  3913.  
  3914. ;
  3915. ; pascal OSErr PBDTRemoveCommentSync(DTPBPtr paramBlock)
  3916. ;
  3917.     IF ¬ GENERATINGCFM THEN
  3918.         ; parameters: 
  3919.         ;     paramBlock        => A0
  3920.         ; returns: 
  3921.         ;     OSErr             <= D0
  3922.         Macro
  3923.         _PBDTRemoveCommentSync
  3924.             moveq    #41,d0
  3925.             dc.w     $A260
  3926.         EndM
  3927.     ELSE
  3928.         IMPORT_CFM_FUNCTION    PBDTRemoveCommentSync
  3929.     ENDIF
  3930.  
  3931. ;
  3932. ; pascal OSErr PBDTRemoveCommentAsync(DTPBPtr paramBlock)
  3933. ;
  3934.     IF ¬ GENERATINGCFM THEN
  3935.         ; parameters: 
  3936.         ;     paramBlock        => A0
  3937.         ; returns: 
  3938.         ;     OSErr             <= D0
  3939.         Macro
  3940.         _PBDTRemoveCommentAsync
  3941.             moveq    #41,d0
  3942.             dc.w     $A660
  3943.         EndM
  3944.     ELSE
  3945.         IMPORT_CFM_FUNCTION    PBDTRemoveCommentAsync
  3946.     ENDIF
  3947.  
  3948. ;
  3949. ; pascal OSErr PBDTGetCommentSync(DTPBPtr paramBlock)
  3950. ;
  3951.     IF ¬ GENERATINGCFM THEN
  3952.         ; parameters: 
  3953.         ;     paramBlock        => A0
  3954.         ; returns: 
  3955.         ;     OSErr             <= D0
  3956.         Macro
  3957.         _PBDTGetCommentSync
  3958.             moveq    #42,d0
  3959.             dc.w     $A260
  3960.         EndM
  3961.     ELSE
  3962.         IMPORT_CFM_FUNCTION    PBDTGetCommentSync
  3963.     ENDIF
  3964.  
  3965. ;
  3966. ; pascal OSErr PBDTGetCommentAsync(DTPBPtr paramBlock)
  3967. ;
  3968.     IF ¬ GENERATINGCFM THEN
  3969.         ; parameters: 
  3970.         ;     paramBlock        => A0
  3971.         ; returns: 
  3972.         ;     OSErr             <= D0
  3973.         Macro
  3974.         _PBDTGetCommentAsync
  3975.             moveq    #42,d0
  3976.             dc.w     $A660
  3977.         EndM
  3978.     ELSE
  3979.         IMPORT_CFM_FUNCTION    PBDTGetCommentAsync
  3980.     ENDIF
  3981.  
  3982. ;
  3983. ; pascal OSErr PBDTFlushSync(DTPBPtr paramBlock)
  3984. ;
  3985.     IF ¬ GENERATINGCFM THEN
  3986.         ; parameters: 
  3987.         ;     paramBlock        => A0
  3988.         ; returns: 
  3989.         ;     OSErr             <= D0
  3990.         Macro
  3991.         _PBDTFlushSync
  3992.             moveq    #43,d0
  3993.             dc.w     $A260
  3994.         EndM
  3995.     ELSE
  3996.         IMPORT_CFM_FUNCTION    PBDTFlushSync
  3997.     ENDIF
  3998.  
  3999. ;
  4000. ; pascal OSErr PBDTFlushAsync(DTPBPtr paramBlock)
  4001. ;
  4002.     IF ¬ GENERATINGCFM THEN
  4003.         ; parameters: 
  4004.         ;     paramBlock        => A0
  4005.         ; returns: 
  4006.         ;     OSErr             <= D0
  4007.         Macro
  4008.         _PBDTFlushAsync
  4009.             moveq    #43,d0
  4010.             dc.w     $A660
  4011.         EndM
  4012.     ELSE
  4013.         IMPORT_CFM_FUNCTION    PBDTFlushAsync
  4014.     ENDIF
  4015.  
  4016. ;
  4017. ; pascal OSErr PBDTResetSync(DTPBPtr paramBlock)
  4018. ;
  4019.     IF ¬ GENERATINGCFM THEN
  4020.         ; parameters: 
  4021.         ;     paramBlock        => A0
  4022.         ; returns: 
  4023.         ;     OSErr             <= D0
  4024.         Macro
  4025.         _PBDTResetSync
  4026.             moveq    #44,d0
  4027.             dc.w     $A260
  4028.         EndM
  4029.     ELSE
  4030.         IMPORT_CFM_FUNCTION    PBDTResetSync
  4031.     ENDIF
  4032.  
  4033. ;
  4034. ; pascal OSErr PBDTResetAsync(DTPBPtr paramBlock)
  4035. ;
  4036.     IF ¬ GENERATINGCFM THEN
  4037.         ; parameters: 
  4038.         ;     paramBlock        => A0
  4039.         ; returns: 
  4040.         ;     OSErr             <= D0
  4041.         Macro
  4042.         _PBDTResetAsync
  4043.             moveq    #44,d0
  4044.             dc.w     $A660
  4045.         EndM
  4046.     ELSE
  4047.         IMPORT_CFM_FUNCTION    PBDTResetAsync
  4048.     ENDIF
  4049.  
  4050. ;
  4051. ; pascal OSErr PBDTGetInfoSync(DTPBPtr paramBlock)
  4052. ;
  4053.     IF ¬ GENERATINGCFM THEN
  4054.         ; parameters: 
  4055.         ;     paramBlock        => A0
  4056.         ; returns: 
  4057.         ;     OSErr             <= D0
  4058.         Macro
  4059.         _PBDTGetInfoSync
  4060.             moveq    #45,d0
  4061.             dc.w     $A260
  4062.         EndM
  4063.     ELSE
  4064.         IMPORT_CFM_FUNCTION    PBDTGetInfoSync
  4065.     ENDIF
  4066.  
  4067. ;
  4068. ; pascal OSErr PBDTGetInfoAsync(DTPBPtr paramBlock)
  4069. ;
  4070.     IF ¬ GENERATINGCFM THEN
  4071.         ; parameters: 
  4072.         ;     paramBlock        => A0
  4073.         ; returns: 
  4074.         ;     OSErr             <= D0
  4075.         Macro
  4076.         _PBDTGetInfoAsync
  4077.             moveq    #45,d0
  4078.             dc.w     $A660
  4079.         EndM
  4080.     ELSE
  4081.         IMPORT_CFM_FUNCTION    PBDTGetInfoAsync
  4082.     ENDIF
  4083.  
  4084. ;
  4085. ; pascal OSErr PBDTOpenInform(DTPBPtr paramBlock)
  4086. ;
  4087.     IF ¬ GENERATINGCFM THEN
  4088.         ; parameters: 
  4089.         ;     paramBlock        => A0
  4090.         ; returns: 
  4091.         ;     OSErr             <= D0
  4092.         Macro
  4093.         _PBDTOpenInform
  4094.             moveq    #46,d0
  4095.             dc.w     $A060
  4096.         EndM
  4097.     ELSE
  4098.         IMPORT_CFM_FUNCTION    PBDTOpenInform
  4099.     ENDIF
  4100.  
  4101. ;
  4102. ; pascal OSErr PBDTDeleteSync(DTPBPtr paramBlock)
  4103. ;
  4104.     IF ¬ GENERATINGCFM THEN
  4105.         ; parameters: 
  4106.         ;     paramBlock        => A0
  4107.         ; returns: 
  4108.         ;     OSErr             <= D0
  4109.         Macro
  4110.         _PBDTDeleteSync
  4111.             moveq    #47,d0
  4112.             dc.w     $A060
  4113.         EndM
  4114.     ELSE
  4115.         IMPORT_CFM_FUNCTION    PBDTDeleteSync
  4116.     ENDIF
  4117.  
  4118. ;
  4119. ; pascal OSErr PBDTDeleteAsync(DTPBPtr paramBlock)
  4120. ;
  4121.     IF ¬ GENERATINGCFM THEN
  4122.         ; parameters: 
  4123.         ;     paramBlock        => A0
  4124.         ; returns: 
  4125.         ;     OSErr             <= D0
  4126.         Macro
  4127.         _PBDTDeleteAsync
  4128.             moveq    #47,d0
  4129.             dc.w     $A460
  4130.         EndM
  4131.     ELSE
  4132.         IMPORT_CFM_FUNCTION    PBDTDeleteAsync
  4133.     ENDIF
  4134.  
  4135. ;  VolumeMount traps  
  4136. ;
  4137. ; pascal OSErr PBGetVolMountInfoSize(ParmBlkPtr paramBlock)
  4138. ;
  4139.     IF ¬ GENERATINGCFM THEN
  4140.         ; parameters: 
  4141.         ;     paramBlock        => A0
  4142.         ; returns: 
  4143.         ;     OSErr             <= D0
  4144.         Macro
  4145.         _PBGetVolMountInfoSize
  4146.             moveq    #63,d0
  4147.             dc.w     $A260
  4148.         EndM
  4149.     ELSE
  4150.         IMPORT_CFM_FUNCTION    PBGetVolMountInfoSize
  4151.     ENDIF
  4152.  
  4153. ;
  4154. ; pascal OSErr PBGetVolMountInfo(ParmBlkPtr paramBlock)
  4155. ;
  4156.     IF ¬ GENERATINGCFM THEN
  4157.         ; parameters: 
  4158.         ;     paramBlock        => A0
  4159.         ; returns: 
  4160.         ;     OSErr             <= D0
  4161.         Macro
  4162.         _PBGetVolMountInfo
  4163.             moveq    #64,d0
  4164.             dc.w     $A260
  4165.         EndM
  4166.     ELSE
  4167.         IMPORT_CFM_FUNCTION    PBGetVolMountInfo
  4168.     ENDIF
  4169.  
  4170. ;
  4171. ; pascal OSErr PBVolumeMount(ParmBlkPtr paramBlock)
  4172. ;
  4173.     IF ¬ GENERATINGCFM THEN
  4174.         ; parameters: 
  4175.         ;     paramBlock        => A0
  4176.         ; returns: 
  4177.         ;     OSErr             <= D0
  4178.         Macro
  4179.         _PBVolumeMount
  4180.             moveq    #65,d0
  4181.             dc.w     $A260
  4182.         EndM
  4183.     ELSE
  4184.         IMPORT_CFM_FUNCTION    PBVolumeMount
  4185.     ENDIF
  4186.  
  4187. ;  FSp traps  
  4188. ;
  4189. ; pascal OSErr FSMakeFSSpec(short vRefNum, long dirID, ConstStr255Param fileName, FSSpec *spec)
  4190. ;
  4191.     IF ¬ GENERATINGCFM THEN
  4192.         Macro
  4193.         _FSMakeFSSpec
  4194.             moveq    #1,d0
  4195.             dc.w     $AA52
  4196.         EndM
  4197.     ELSE
  4198.         IMPORT_CFM_FUNCTION    FSMakeFSSpec
  4199.     ENDIF
  4200.  
  4201. ;
  4202. ; pascal OSErr FSpOpenDF(const FSSpec *spec, SInt8 permission, short *refNum)
  4203. ;
  4204.     IF ¬ GENERATINGCFM THEN
  4205.         Macro
  4206.         _FSpOpenDF
  4207.             moveq    #2,d0
  4208.             dc.w     $AA52
  4209.         EndM
  4210.     ELSE
  4211.         IMPORT_CFM_FUNCTION    FSpOpenDF
  4212.     ENDIF
  4213.  
  4214. ;
  4215. ; pascal OSErr FSpOpenRF(const FSSpec *spec, SInt8 permission, short *refNum)
  4216. ;
  4217.     IF ¬ GENERATINGCFM THEN
  4218.         Macro
  4219.         _FSpOpenRF
  4220.             moveq    #3,d0
  4221.             dc.w     $AA52
  4222.         EndM
  4223.     ELSE
  4224.         IMPORT_CFM_FUNCTION    FSpOpenRF
  4225.     ENDIF
  4226.  
  4227. ;
  4228. ; pascal OSErr FSpCreate(const FSSpec *spec, OSType creator, OSType fileType, ScriptCode scriptTag)
  4229. ;
  4230.     IF ¬ GENERATINGCFM THEN
  4231.         Macro
  4232.         _FSpCreate
  4233.             moveq    #4,d0
  4234.             dc.w     $AA52
  4235.         EndM
  4236.     ELSE
  4237.         IMPORT_CFM_FUNCTION    FSpCreate
  4238.     ENDIF
  4239.  
  4240. ;
  4241. ; pascal OSErr FSpDirCreate(const FSSpec *spec, ScriptCode scriptTag, long *createdDirID)
  4242. ;
  4243.     IF ¬ GENERATINGCFM THEN
  4244.         Macro
  4245.         _FSpDirCreate
  4246.             moveq    #5,d0
  4247.             dc.w     $AA52
  4248.         EndM
  4249.     ELSE
  4250.         IMPORT_CFM_FUNCTION    FSpDirCreate
  4251.     ENDIF
  4252.  
  4253. ;
  4254. ; pascal OSErr FSpDelete(const FSSpec *spec)
  4255. ;
  4256.     IF ¬ GENERATINGCFM THEN
  4257.         Macro
  4258.         _FSpDelete
  4259.             moveq    #6,d0
  4260.             dc.w     $AA52
  4261.         EndM
  4262.     ELSE
  4263.         IMPORT_CFM_FUNCTION    FSpDelete
  4264.     ENDIF
  4265.  
  4266. ;
  4267. ; pascal OSErr FSpGetFInfo(const FSSpec *spec, FInfo *fndrInfo)
  4268. ;
  4269.     IF ¬ GENERATINGCFM THEN
  4270.         Macro
  4271.         _FSpGetFInfo
  4272.             moveq    #7,d0
  4273.             dc.w     $AA52
  4274.         EndM
  4275.     ELSE
  4276.         IMPORT_CFM_FUNCTION    FSpGetFInfo
  4277.     ENDIF
  4278.  
  4279. ;
  4280. ; pascal OSErr FSpSetFInfo(const FSSpec *spec, const FInfo *fndrInfo)
  4281. ;
  4282.     IF ¬ GENERATINGCFM THEN
  4283.         Macro
  4284.         _FSpSetFInfo
  4285.             moveq    #8,d0
  4286.             dc.w     $AA52
  4287.         EndM
  4288.     ELSE
  4289.         IMPORT_CFM_FUNCTION    FSpSetFInfo
  4290.     ENDIF
  4291.  
  4292. ;
  4293. ; pascal OSErr FSpSetFLock(const FSSpec *spec)
  4294. ;
  4295.     IF ¬ GENERATINGCFM THEN
  4296.         Macro
  4297.         _FSpSetFLock
  4298.             moveq    #9,d0
  4299.             dc.w     $AA52
  4300.         EndM
  4301.     ELSE
  4302.         IMPORT_CFM_FUNCTION    FSpSetFLock
  4303.     ENDIF
  4304.  
  4305. ;
  4306. ; pascal OSErr FSpRstFLock(const FSSpec *spec)
  4307. ;
  4308.     IF ¬ GENERATINGCFM THEN
  4309.         Macro
  4310.         _FSpRstFLock
  4311.             moveq    #10,d0
  4312.             dc.w     $AA52
  4313.         EndM
  4314.     ELSE
  4315.         IMPORT_CFM_FUNCTION    FSpRstFLock
  4316.     ENDIF
  4317.  
  4318. ;
  4319. ; pascal OSErr FSpRename(const FSSpec *spec, ConstStr255Param newName)
  4320. ;
  4321.     IF ¬ GENERATINGCFM THEN
  4322.         Macro
  4323.         _FSpRename
  4324.             moveq    #11,d0
  4325.             dc.w     $AA52
  4326.         EndM
  4327.     ELSE
  4328.         IMPORT_CFM_FUNCTION    FSpRename
  4329.     ENDIF
  4330.  
  4331. ;
  4332. ; pascal OSErr FSpCatMove(const FSSpec *source, const FSSpec *dest)
  4333. ;
  4334.     IF ¬ GENERATINGCFM THEN
  4335.         Macro
  4336.         _FSpCatMove
  4337.             moveq    #12,d0
  4338.             dc.w     $AA52
  4339.         EndM
  4340.     ELSE
  4341.         IMPORT_CFM_FUNCTION    FSpCatMove
  4342.     ENDIF
  4343.  
  4344. ;
  4345. ; pascal OSErr FSpExchangeFiles(const FSSpec *source, const FSSpec *dest)
  4346. ;
  4347.     IF ¬ GENERATINGCFM THEN
  4348.         Macro
  4349.         _FSpExchangeFiles
  4350.             moveq    #15,d0
  4351.             dc.w     $AA52
  4352.         EndM
  4353.     ELSE
  4354.         IMPORT_CFM_FUNCTION    FSpExchangeFiles
  4355.     ENDIF
  4356.  
  4357. ;
  4358. ; pascal OSErr PBShareSync(HParmBlkPtr paramBlock)
  4359. ;
  4360.     IF ¬ GENERATINGCFM THEN
  4361.         ; parameters: 
  4362.         ;     paramBlock        => A0
  4363.         ; returns: 
  4364.         ;     OSErr             <= D0
  4365.         Macro
  4366.         _PBShareSync
  4367.             moveq    #66,d0
  4368.             dc.w     $A260
  4369.         EndM
  4370.     ELSE
  4371.         IMPORT_CFM_FUNCTION    PBShareSync
  4372.     ENDIF
  4373.  
  4374. ;
  4375. ; pascal OSErr PBShareAsync(HParmBlkPtr paramBlock)
  4376. ;
  4377.     IF ¬ GENERATINGCFM THEN
  4378.         ; parameters: 
  4379.         ;     paramBlock        => A0
  4380.         ; returns: 
  4381.         ;     OSErr             <= D0
  4382.         Macro
  4383.         _PBShareAsync
  4384.             moveq    #66,d0
  4385.             dc.w     $A660
  4386.         EndM
  4387.     ELSE
  4388.         IMPORT_CFM_FUNCTION    PBShareAsync
  4389.     ENDIF
  4390.  
  4391. ;
  4392. ; pascal OSErr PBUnshareSync(HParmBlkPtr paramBlock)
  4393. ;
  4394.     IF ¬ GENERATINGCFM THEN
  4395.         ; parameters: 
  4396.         ;     paramBlock        => A0
  4397.         ; returns: 
  4398.         ;     OSErr             <= D0
  4399.         Macro
  4400.         _PBUnshareSync
  4401.             moveq    #67,d0
  4402.             dc.w     $A260
  4403.         EndM
  4404.     ELSE
  4405.         IMPORT_CFM_FUNCTION    PBUnshareSync
  4406.     ENDIF
  4407.  
  4408. ;
  4409. ; pascal OSErr PBUnshareAsync(HParmBlkPtr paramBlock)
  4410. ;
  4411.     IF ¬ GENERATINGCFM THEN
  4412.         ; parameters: 
  4413.         ;     paramBlock        => A0
  4414.         ; returns: 
  4415.         ;     OSErr             <= D0
  4416.         Macro
  4417.         _PBUnshareAsync
  4418.             moveq    #67,d0
  4419.             dc.w     $A660
  4420.         EndM
  4421.     ELSE
  4422.         IMPORT_CFM_FUNCTION    PBUnshareAsync
  4423.     ENDIF
  4424.  
  4425. ;
  4426. ; pascal OSErr PBGetUGEntrySync(HParmBlkPtr paramBlock)
  4427. ;
  4428.     IF ¬ GENERATINGCFM THEN
  4429.         ; parameters: 
  4430.         ;     paramBlock        => A0
  4431.         ; returns: 
  4432.         ;     OSErr             <= D0
  4433.         Macro
  4434.         _PBGetUGEntrySync
  4435.             moveq    #68,d0
  4436.             dc.w     $A260
  4437.         EndM
  4438.     ELSE
  4439.         IMPORT_CFM_FUNCTION    PBGetUGEntrySync
  4440.     ENDIF
  4441.  
  4442. ;
  4443. ; pascal OSErr PBGetUGEntryAsync(HParmBlkPtr paramBlock)
  4444. ;
  4445.     IF ¬ GENERATINGCFM THEN
  4446.         ; parameters: 
  4447.         ;     paramBlock        => A0
  4448.         ; returns: 
  4449.         ;     OSErr             <= D0
  4450.         Macro
  4451.         _PBGetUGEntryAsync
  4452.             moveq    #68,d0
  4453.             dc.w     $A660
  4454.         EndM
  4455.     ELSE
  4456.         IMPORT_CFM_FUNCTION    PBGetUGEntryAsync
  4457.     ENDIF
  4458.  
  4459.     IF OLDROUTINENAMES  ** ¬ GENERATINGCFM  THEN
  4460. ;
  4461. ;    PBGetAltAccess and PBSetAltAccess are obsolete and will not be supported 
  4462. ;    on PowerPC. Equivalent functionality is provided by the routines 
  4463. ;    PBGetForeignPrivs and PBSetForeignPrivs.
  4464. ;
  4465. ;
  4466. ; pascal OSErr PBGetAltAccessSync(HParmBlkPtr paramBlock)
  4467. ;
  4468.     IF ¬ GENERATINGCFM THEN
  4469.         ; parameters: 
  4470.         ;     paramBlock        => A0
  4471.         ; returns: 
  4472.         ;     OSErr             <= D0
  4473.         Macro
  4474.         _PBGetAltAccessSync
  4475.             moveq    #96,d0
  4476.             dc.w     $A060
  4477.         EndM
  4478.     ELSE
  4479.         IMPORT_CFM_FUNCTION    PBGetAltAccessSync
  4480.     ENDIF
  4481.  
  4482. ;
  4483. ; pascal OSErr PBGetAltAccessAsync(HParmBlkPtr paramBlock)
  4484. ;
  4485.     IF ¬ GENERATINGCFM THEN
  4486.         ; parameters: 
  4487.         ;     paramBlock        => A0
  4488.         ; returns: 
  4489.         ;     OSErr             <= D0
  4490.         Macro
  4491.         _PBGetAltAccessAsync
  4492.             moveq    #96,d0
  4493.             dc.w     $A460
  4494.         EndM
  4495.     ELSE
  4496.         IMPORT_CFM_FUNCTION    PBGetAltAccessAsync
  4497.     ENDIF
  4498.  
  4499. ;
  4500. ; pascal OSErr PBSetAltAccessSync(HParmBlkPtr paramBlock)
  4501. ;
  4502.     IF ¬ GENERATINGCFM THEN
  4503.         ; parameters: 
  4504.         ;     paramBlock        => A0
  4505.         ; returns: 
  4506.         ;     OSErr             <= D0
  4507.         Macro
  4508.         _PBSetAltAccessSync
  4509.             moveq    #97,d0
  4510.             dc.w     $A060
  4511.         EndM
  4512.     ELSE
  4513.         IMPORT_CFM_FUNCTION    PBSetAltAccessSync
  4514.     ENDIF
  4515.  
  4516. ;
  4517. ; pascal OSErr PBSetAltAccessAsync(HParmBlkPtr paramBlock)
  4518. ;
  4519.     IF ¬ GENERATINGCFM THEN
  4520.         ; parameters: 
  4521.         ;     paramBlock        => A0
  4522.         ; returns: 
  4523.         ;     OSErr             <= D0
  4524.         Macro
  4525.         _PBSetAltAccessAsync
  4526.             moveq    #97,d0
  4527.             dc.w     $A460
  4528.         EndM
  4529.     ELSE
  4530.         IMPORT_CFM_FUNCTION    PBSetAltAccessAsync
  4531.     ENDIF
  4532.  
  4533.     ENDIF
  4534.     IF OLDROUTINENAMES  THEN
  4535. ;
  4536. ;    The PBxxx() routines are obsolete.  
  4537. ;    
  4538. ;    Use the PBxxxSync() or PBxxxAsync() version instead.
  4539. ;
  4540.     IF OLDROUTINELOCATIONS  THEN
  4541.     ENDIF
  4542.     ENDIF
  4543.     ENDIF ; __FILES__
  4544.